remove mac

Doesn't work with 3 finger swipe, 2 finger not supported.
This commit is contained in:
Thomas Zarebczan 2019-01-31 08:32:44 -05:00
parent 53107fa098
commit 37f784e3b0

View file

@ -72,6 +72,7 @@ export default appState => {
}
setupBarMenu();
// Windows back/forward mouse navigation
window.on('app-command', (e, cmd) => {
switch (cmd) {
@ -84,18 +85,6 @@ export default appState => {
default: // Do nothing
}
});
// Mac back/forward swipe navigation
window.on('swipe', (e, dir) => {
switch (dir) {
case 'left':
window.webContents.send('navigate-backward', null);
break;
case 'right':
window.webContents.send('navigate-forward', null);
break;
default: // Do nothing
}
});
window.on('close', event => {
if (!appState.isQuitting && !appState.autoUpdateAccepted) {