Bug 630594 - Click delay should be disabled if the page is not zoomable [r=mfinkle]
authorVivien Nicolas <21@vingtetun.org>
Thu, 10 Feb 2011 14:44:49 +0100
changeset 67369 925e2ddbe2a0eb8d663e1e35843b848f45b1ab98
parent 67368 e6da3f93ac651a4ce7ac5f6940b6b67b0e36bbf8
child 67370 7a6e230c91bd1cf2ddb514e8f141793784f78099
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle
bugs630594
Bug 630594 - Click delay should be disabled if the page is not zoomable [r=mfinkle]
mobile/chrome/content/browser.js
--- a/mobile/chrome/content/browser.js
+++ b/mobile/chrome/content/browser.js
@@ -1525,17 +1525,23 @@ const ContentTouchHandler = {
         switch (aEvent.type) {
           case "TapDown":
             this.tapDown(aEvent.clientX, aEvent.clientY);
             break;
           case "TapOver":
             this.tapOver(aEvent.clientX, aEvent.clientY);
             break;
           case "TapUp":
-            this.tapUp(aEvent.clientX, aEvent.clientY);
+            if (Browser.selectedTab.allowZoom) {
+              this.tapUp(aEvent.clientX, aEvent.clientY);
+            }
+            else {
+              this.tapSingle(aEvent.clientX, aEvent.clientY, aEvent.modifiers);
+              aEvent.preventDefault();
+            }
             break;
           case "TapSingle":
             this.tapSingle(aEvent.clientX, aEvent.clientY, aEvent.modifiers);
             break;
           case "TapDouble":
             this.tapDouble(aEvent.clientX, aEvent.clientY, aEvent.modifiers);
             break;
           case "TapLong":