Skip to content

Commit

Permalink
fix: dragging
Browse files Browse the repository at this point in the history
  • Loading branch information
0y8w1x committed Mar 22, 2024
1 parent 7931212 commit 47111dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ ipcMain.on('start-dragging', (_event, initialOffsetX, initialOffsetY) => {

ipcMain.on('dragging', (_event, screenX, screenY) => {
if (isDragging) {
mainWindow.setPosition(screenX + offsetX, screenY + offsetY, true);
mainWindow.setPosition(screenX - offsetX, screenY - offsetY, true);
}
});

Expand Down

0 comments on commit 47111dc

Please sign in to comment.