summaryrefslogtreecommitdiffstats
path: root/devtools/shared/touch
diff options
context:
space:
mode:
authorAscrod <32915892+Ascrod@users.noreply.github.com>2019-04-08 20:05:53 -0400
committerAscrod <32915892+Ascrod@users.noreply.github.com>2019-04-13 11:37:45 -0400
commit609a7215e6ef705fd098fd4adb4f922795ff1119 (patch)
treecba7742899754d237f2eab6d74634f4f23fd7667 /devtools/shared/touch
parent7591326915a100b54ca17ad6fedb391645bac6b5 (diff)
downloadUXP-609a7215e6ef705fd098fd4adb4f922795ff1119.tar
UXP-609a7215e6ef705fd098fd4adb4f922795ff1119.tar.gz
UXP-609a7215e6ef705fd098fd4adb4f922795ff1119.tar.lz
UXP-609a7215e6ef705fd098fd4adb4f922795ff1119.tar.xz
UXP-609a7215e6ef705fd098fd4adb4f922795ff1119.zip
Issue #991 Part 3: Devtools
Diffstat (limited to 'devtools/shared/touch')
-rw-r--r--devtools/shared/touch/simulator-core.js15
1 files changed, 2 insertions, 13 deletions
diff --git a/devtools/shared/touch/simulator-core.js b/devtools/shared/touch/simulator-core.js
index 6933f9207..fff7d2e78 100644
--- a/devtools/shared/touch/simulator-core.js
+++ b/devtools/shared/touch/simulator-core.js
@@ -18,19 +18,8 @@ var systemAppOrigin = (function () {
return systemOrigin;
})();
-var threshold = 25;
-try {
- threshold = Services.prefs.getIntPref("ui.dragThresholdX");
-} catch (e) {
- // Fall back to default value
-}
-
-var delay = 500;
-try {
- delay = Services.prefs.getIntPref("ui.click_hold_context_menus.delay");
-} catch (e) {
- // Fall back to default value
-}
+var threshold = Services.prefs.getIntPref("ui.dragThresholdX", 25);
+var delay = Services.prefs.getIntPref("ui.click_hold_context_menus.delay", 500);
function SimulatorCore(simulatorTarget) {
this.simulatorTarget = simulatorTarget;