Bug 640500 - Long tap on a website from Awesomelist doesn't open the context menu [r=mfinkle,mbrubeck,a=approval2.0+]

This commit is contained in:
Vivien Nicolas 2011-03-11 18:54:40 +01:00
parent e9f17160f3
commit 8335f48fa8
2 changed files with 4 additions and 2 deletions

View File

@ -566,7 +566,9 @@ pref("services.sync.prefs.sync.signon.rememberSignons", true);
#endif
// threshold where a tap becomes a drag, in 1/240" reference pixels
pref("ui.dragThreshold", 24);
// The names of the preferences are to be in sync with nsEventStateManager.cpp
pref("ui.dragThresholdX", 25);
pref("ui.dragThresholdY", 25);
#if MOZ_PLATFORM_MAEMO == 6
pref("layers.acceleration.disabled", false);

View File

@ -540,7 +540,7 @@ var ScrollUtils = {
let dpi = Util.getWindowUtils(window).displayDPI;
delete this.tapRadius;
return this.tapRadius = Services.prefs.getIntPref("ui.dragThreshold") / 240 * dpi;
return this.tapRadius = Services.prefs.getIntPref("ui.dragThresholdX") / 240 * dpi;
},
/**