Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Commit

Permalink
Disable pinch-to-zoom, fixes #8850
Browse files Browse the repository at this point in the history
  • Loading branch information
zcbenz committed Sep 22, 2015
1 parent 6d88c75 commit 586bd88
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/atom.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ os = require 'os'
path = require 'path'
remote = require 'remote'
shell = require 'shell'
webFrame = require 'web-frame'

_ = require 'underscore-plus'
{deprecate, includeDeprecatedAPIs} = require 'grim'
Expand Down Expand Up @@ -233,6 +234,9 @@ class Atom extends Model
# Make react.js faster
process.env.NODE_ENV ?= 'production' unless devMode

# Disable pinch-to-zoom.
webFrame.setZoomLevelLimits(1, 1)

@config = new Config({configDirPath, resourcePath})
@keymaps = new KeymapManager({configDirPath, resourcePath})

Expand Down

0 comments on commit 586bd88

Please sign in to comment.