gui: disable pinch zoom (#189)

This commit is contained in:
jean-emmanuel 2018-03-05 10:49:51 +01:00
parent bcbdc5e56a
commit 475998fe63
3 changed files with 6 additions and 1 deletions

View file

@ -7,6 +7,8 @@
- widgets: css: @media queries parsing
- prevent some errors when synchronizing clients
- use command key instead of ctrl for zooming on mac
- default client
- mac: disabled unsupported pinch zoom
- themes
- alt-buttons: modal font-weight & color fix

View file

@ -49,6 +49,9 @@ module.exports = function(options={}) {
})
}
if (options.zoom === false) {
window.webContents.setVisualZoomLevelLimits(1, 1)
}
window.on('closed', function() {

View file

@ -37,7 +37,7 @@ var start = function(readyApp) {
address += settings.read('urlOptions')
var launch = ()=>{
var win = require('./electron-window')({address:address, shortcuts:true, fullscreen: settings.read('fullScreen')})
var win = require('./electron-window')({address:address, shortcuts:true, zoom:false, fullscreen: settings.read('fullScreen')})
return win
}
if (app.isReady()) {