Revert some incorrect changes from bug 593499 [r=stechz]
authorMatt Brubeck <mbrubeck@mozilla.com>
Wed, 08 Sep 2010 13:26:47 -0700
changeset 1898 6c3b8ad68d56c1bcb55d45972ff77f4811039956
parent 1897 892cf174a3cfe770427c43fefd2569a5cbc98e9a
child 1899 99c4b05339e8391d69553cf9ab3586c3d7e371de
push id1676
push usermbrubeck@mozilla.com
push dateWed, 08 Sep 2010 20:27:08 +0000
reviewersstechz
bugs593499
Revert some incorrect changes from bug 593499 [r=stechz]
chrome/content/InputHandler.js
chrome/content/content.js
--- a/chrome/content/InputHandler.js
+++ b/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/chrome/content/content.js
+++ b/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"]