Skip to content

Commit

Permalink
reverse direction of three-finger swipe
Browse files Browse the repository at this point in the history
  • Loading branch information
gijoe0295 committed Jan 19, 2024
1 parent 68e997d commit 8296ba1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions desktop/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -512,10 +512,10 @@ const mainWindow = () => {
});

browserWindow.on('swipe', (e, direction) => {
if (direction === 'right') {
if (direction === 'left') {
browserWindow.webContents.goBack();
}
if (direction === 'left') {
if (direction === 'right') {
browserWindow.webContents.goForward();
}
});
Expand Down

0 comments on commit 8296ba1

Please sign in to comment.