Bug 860493: Add pref to disable history swipe animations. r=felipe

This commit is contained in:
Stephen A Pohl 2018-05-16 23:09:45 -04:00
parent 8e75c6c6bc
commit 325481c026
2 changed files with 5 additions and 2 deletions

View File

@ -620,7 +620,7 @@ pref("browser.gesture.twist.left", "cmd_gestureRotateLeft");
pref("browser.gesture.twist.end", "cmd_gestureRotateEnd");
pref("browser.gesture.tap", "cmd_fullZoomReset");
pref("browser.snapshots.limit", 0);
pref("browser.history_swipe_animation.disabled", false);
// 0: Nothing happens
// 1: Scrolling contents

View File

@ -586,7 +586,10 @@ var gHistorySwipeAnimation = {
this.isLTR = document.documentElement.matches(":-moz-locale-dir(ltr)");
this._isStoppingAnimation = false;
this.active = true;
if (!Services.prefs.getBoolPref("browser.history_swipe_animation.disabled",
false)) {
this.active = true;
}
},
/**