From aee93c720831015e74fa6a09b416375c4a9e4076 Mon Sep 17 00:00:00 2001 From: Vivien Nicolas <21@vingtetun.org> Date: Thu, 9 Sep 2010 11:07:16 +0200 Subject: [PATCH] Bug 593787: Long click on any Bookmark in Bookmark Manager doesn't always popup context menu [r=mfinkle] --- mobile/app/mobile.js | 4 ++++ mobile/chrome/content/InputHandler.js | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/mobile/app/mobile.js b/mobile/app/mobile.js index a503cf8a487..77ec9ecc5ca 100644 --- a/mobile/app/mobile.js +++ b/mobile/app/mobile.js @@ -483,3 +483,7 @@ pref("network.buffer.cache.size", 16384); pref("services.sync.client.type", "mobile"); pref("services.sync.registerEngines", "Tab,Bookmarks,Form,History,Password"); pref("services.sync.autoconnectDelay", 5); + +// Drag thresholds +pref("ui.dragThresholdX", 25); +pref("ui.dragThresholdY", 25); diff --git a/mobile/chrome/content/InputHandler.js b/mobile/chrome/content/InputHandler.js index 2c460b95692..c3c5df7bef0 100644 --- a/mobile/chrome/content/InputHandler.js +++ b/mobile/chrome/content/InputHandler.js @@ -50,7 +50,7 @@ const kDoubleClickInterval = 400; const kDoubleClickThreshold = 200; // threshold in pixels for sensing a tap as opposed to a pan -const kTapRadius = 25; +const kTapRadius = Services.prefs.getIntPref("ui.dragThresholdX"); // maximum drag distance in pixels while axis locking can still be reverted const kAxisLockRevertThreshold = 200;