Bug 1227760 - Fix check for touch events being enabled on B2G. r=kats
authorBotond Ballo <botond@mozilla.com>
Fri, 27 Nov 2015 19:14:23 -0500
changeset 308885 069ec24417686fe7e2bca56b366533047937a13a
parent 308884 de171af8720b687c75e5ea5b5de4030a6da98043
child 308886 20a38236eb399da9c2a73ad5ab1843c2870ed518
push id5513
push userraliiev@mozilla.com
push dateMon, 25 Jan 2016 13:55:34 +0000
treeherdermozilla-beta@5ee97dd05b5c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskats
bugs1227760
milestone45.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1227760 - Fix check for touch events being enabled on B2G. r=kats
dom/browser-element/BrowserElementChild.js
--- a/dom/browser-element/BrowserElementChild.js
+++ b/dom/browser-element/BrowserElementChild.js
@@ -60,17 +60,17 @@ if (!('BrowserElementIsPreloaded' in thi
     }
 
     Services.scriptloader.loadSubScript("chrome://global/content/BrowserElementPanning.js");
     ContentPanning.init();
   }
 
   Services.scriptloader.loadSubScript("chrome://global/content/BrowserElementChildPreload.js");
 } else {
-  if (Services.prefs.getIntPref("dom.w3c_touch_events.enabled") == 1) {
+  if (Services.prefs.getIntPref("dom.w3c_touch_events.enabled") != 0) {
     if (docShell.asyncPanZoomEnabled === false) {
       ContentPanningAPZDisabled.init();
     }
     ContentPanning.init();
   }
 }
 
 var BrowserElementIsReady = true;