Skip to content

Commit c8c9d56

Browse files
committed
Revert factor in next
1 parent b2fc76a commit c8c9d56

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/main/main.ts

+2-6
Original file line numberDiff line numberDiff line change
@@ -304,12 +304,8 @@ ipcMain.handle(
304304

305305
// Click
306306
if (nextCoord) {
307-
const nextX = Math.floor(
308-
((nextCoord.x0 + nextCoord.x1) / 2) * factor
309-
);
310-
const nextY = Math.floor(
311-
((nextCoord.y0 + nextCoord.y1) / 2) * factor
312-
);
307+
const nextX = Math.floor((nextCoord.x0 + nextCoord.x1) / 2);
308+
const nextY = Math.floor((nextCoord.y0 + nextCoord.y1) / 2);
313309
robot.moveMouse(nextX, nextY);
314310
robot.mouseClick();
315311
}

0 commit comments

Comments
 (0)