Bug 1228655 - Remove ifdefs in browser-gesturesupport.js. r=Gijs

This commit is contained in:
Felipe Gomes
2015-12-01 20:06:09 -02:00
parent 2716c06950
commit ae9ca97935
2 changed files with 5 additions and 6 deletions

View File

@@ -81,11 +81,10 @@ var gGestureSupport = {
break;
case "MozMagnifyGestureStart":
aEvent.preventDefault();
#ifdef XP_WIN
this._setupGesture(aEvent, "pinch", def(25, 0), "out", "in");
#else
this._setupGesture(aEvent, "pinch", def(150, 1), "out", "in");
#endif
let pinchPref = AppConstants.platform == "win"
? def(25, 0)
: def(150, 1);
this._setupGesture(aEvent, "pinch", pinchPref, "out", "in");
break;
case "MozRotateGestureStart":
aEvent.preventDefault();