Commit f037a501 authored by cybai's avatar cybai
Browse files

Bug 1820270 - Bring back swipe-to-navigation flag. r=hiro, a=dsmith

Backed out changeset 1ef78776ddee

Differential Revision: https://phabricator.services.mozilla.com/D173278
parent 8ac5e30c
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -989,6 +989,8 @@ pref("browser.gesture.twist.end", "cmd_gestureRotateEnd");
  pref("browser.gesture.tap", "");
#endif

pref("browser.history_swipe_animation.disabled", false);

// 0: Nothing happens
// 1: Scrolling contents
// 2: Go back or go forward, in your history
+9 −0
Original line number Diff line number Diff line
@@ -668,6 +668,15 @@ var gHistorySwipeAnimation = {
      return;
    }

    if (
      Services.prefs.getBoolPref(
        "browser.history_swipe_animation.disabled",
        false
      )
    ) {
      return;
    }

    this._icon = document.getElementById("swipe-nav-icon");
    this._initPrefValues();
    this._addPrefObserver();