gui: disable pinch zoom (#189)
This commit is contained in:
parent
7ac3418a5b
commit
0dd0321249
3 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -49,6 +49,9 @@ module.exports = function(options={}) {
|
|||
})
|
||||
}
|
||||
|
||||
if (options.zoom === false) {
|
||||
window.webContents.setVisualZoomLevelLimits(1, 1)
|
||||
}
|
||||
|
||||
|
||||
window.on('closed', function() {
|
||||
|
|
|
|||
|
|
@ -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()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue