diff --git a/desktop/main.js b/desktop/main.js index 5ae02377e2b9..c9d614d3de15 100644 --- a/desktop/main.js +++ b/desktop/main.js @@ -511,6 +511,15 @@ const mainWindow = () => { } }); + browserWindow.on('swipe', (e, direction) => { + if (direction === 'right') { + browserWindow.webContents.goBack(); + } + if (direction === 'left') { + browserWindow.webContents.goForward(); + } + }); + browserWindow.on(ELECTRON_EVENTS.FOCUS, () => { browserWindow.webContents.send(ELECTRON_EVENTS.FOCUS); });