mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Disable pinch-to-zoom, fixes #8850
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
crypto = require 'crypto'
|
||||
path = require 'path'
|
||||
webFrame = require 'web-frame'
|
||||
|
||||
_ = require 'underscore-plus'
|
||||
{deprecate} = require 'grim'
|
||||
@@ -188,6 +189,9 @@ class AtomEnvironment extends Model
|
||||
@stylesElement = @styles.buildStylesElement()
|
||||
@document.head.appendChild(@stylesElement)
|
||||
|
||||
# Disable pinch-to-zoom.
|
||||
webFrame.setZoomLevelLimits(1, 1)
|
||||
|
||||
@keymaps.subscribeToFileReadFailure()
|
||||
@keymaps.loadBundledKeymaps()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user