Revert some incorrect changes from bug 593499 [r=stechz]
authorMatt Brubeck <mbrubeck@mozilla.com>
Wed, 08 Sep 2010 13:26:47 -0700
changeset 66542 471052b2d002dc96c291509ad39413280a1d1869
parent 66541 582f22ba322cc4b0ce4a19a644385367197de4d5
child 66543 28e5592fb1902a699faa99d4c60bae5735a66921
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)
reviewersstechz
bugs593499
Revert some incorrect changes from bug 593499 [r=stechz]
mobile/chrome/content/InputHandler.js
mobile/chrome/content/content.js
--- a/mobile/chrome/content/InputHandler.js
+++ b/mobile/chrome/content/InputHandler.js
@@ -37,21 +37,22 @@
  * use your version of this file under the terms of the MPL, indicate your
  * decision by deleting the provisions above and replace them with the notice
  * and other provisions required by the GPL or the LGPL. If you do not delete
  * the provisions above, a recipient may use your version of this file under
  * the terms of any one of the MPL, the GPL or the LGPL.
  *
  * ***** END LICENSE BLOCK ***** */
 
-// how many msecs elapse before two taps are not a double tap
+// Maximum delay in ms between the two taps of a double-tap
 const kDoubleClickInterval = 400;
 
-// threshold in ms to detect if the click is possibly a dblClick
-const kDoubleClickThreshold = 300;
+// If a tap lasts longer than this duration in ms, treat it as a single-tap
+// immediately instead of waiting for a possible double tap.
+const kDoubleClickThreshold = 200;
 
 // threshold in pixels for sensing a tap as opposed to a pan
 const kTapRadius = 25;
 
 // maximum drag distance in pixels while axis locking can still be reverted
 const kAxisLockRevertThreshold = 200;
 
 // Same as NS_EVENT_STATE_ACTIVE from nsIEventStateManager.h
--- a/mobile/chrome/content/content.js
+++ b/mobile/chrome/content/content.js
@@ -1,13 +1,13 @@
 // This stays here because otherwise it's hard to tell if there's a parsing error
 dump("###################################### content loaded\n");
 
 // how many milliseconds before the mousedown and the overlay of an element
-const kTapOverlayTimeout = 300;
+const kTapOverlayTimeout = 200;
 
 let Cc = Components.classes;
 let Ci = Components.interfaces;
 let Cu = Components.utils;
 
 Cu.import("resource://gre/modules/Services.jsm");
 
 let gFocusManager = Cc["@mozilla.org/focus-manager;1"]