Skip to content

Commit

Permalink
Revert factor in next
Browse files Browse the repository at this point in the history
  • Loading branch information
manhtai committed Sep 4, 2023
1 parent b2fc76a commit c8c9d56
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/main/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -304,12 +304,8 @@ ipcMain.handle(

// Click
if (nextCoord) {
const nextX = Math.floor(
((nextCoord.x0 + nextCoord.x1) / 2) * factor
);
const nextY = Math.floor(
((nextCoord.y0 + nextCoord.y1) / 2) * factor
);
const nextX = Math.floor((nextCoord.x0 + nextCoord.x1) / 2);
const nextY = Math.floor((nextCoord.y0 + nextCoord.y1) / 2);
robot.moveMouse(nextX, nextY);
robot.mouseClick();
}
Expand Down

0 comments on commit c8c9d56

Please sign in to comment.