Skip to content

Commit

Permalink
Merge pull request #34831 from gijoe0295/gijoe-33435-reverse-direction
Browse files Browse the repository at this point in the history
Feature: Support three-finger swipe on Mac desktop app
  • Loading branch information
amyevans authored Jan 22, 2024
2 parents 9dd51a3 + 8296ba1 commit b68abb4
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 b68abb4

Please sign in to comment.