We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2fc76a commit c8c9d56Copy full SHA for c8c9d56
src/main/main.ts
@@ -304,12 +304,8 @@ ipcMain.handle(
304
305
// Click
306
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
+ const nextX = Math.floor((nextCoord.x0 + nextCoord.x1) / 2);
+ const nextY = Math.floor((nextCoord.y0 + nextCoord.y1) / 2);
313
robot.moveMouse(nextX, nextY);
314
robot.mouseClick();
315
}
0 commit comments