mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 01:05:45 +00:00
Bug 860493: Add pref to disable history swipe animations. r=felipe
This commit is contained in:
parent
8e75c6c6bc
commit
325481c026
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user