We're calling on all EU-based Mozillians with iOS or iPadOS devices to help us monitor Apple’s new browser choice screens. Join the effort to hold Big Tech to account!

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Ability to go back/forward one page by using two-finger swipe as Chrome

  • 5 பதிலளிப்புகள்
  • 2 இந்த பிரச்னைகள் உள்ளது
  • 7 views
  • Last reply by jscher2000 - Support Volunteer

I'd like to be able to go back and forward by swiping with two fingers either left for back one page or swipe right forward one page as seen on Chrome. It's very convenient and I was hoping to know if there's any way of achieving this on Firefox.

I'd like to be able to go back and forward by swiping with two fingers either left for back one page or swipe right forward one page as seen on Chrome. It's very convenient and I was hoping to know if there's any way of achieving this on Firefox.

All Replies (5)

Hi Anish, do you mean on a touchpad connected to your Windows computer, or on a touchscreen display?

Actually, I'm not sure how to set up either of those, but perhaps another volunteer has an idea.

Thanks for the response. Actually using both, connected touchpad as well as the touchscreen. When you swipe with two fingers across the touchpad it should either go forward or backward.

There are various browser.gesture prefs available. I don't know if they cover this.

There seems to be a pref property that should allow user to do so, however the JS is in-editable.

I guess this code is responsible for it:

 /**
  * Checks whether a swipe gesture event can navigate the browser history or
  * not.
  *
  * @param aEvent
  *        The swipe gesture event.
  * @return true if the swipe event may navigate the history, false othwerwise.
  */
 _swipeNavigatesHistory: function GS__swipeNavigatesHistory(aEvent) {
   return this._getCommand(aEvent, ["swipe", "left"])
             == "Browser:BackOrBackDuplicate" &&
          this._getCommand(aEvent, ["swipe", "right"])
             == "Browser:ForwardOrForwardDuplicate";

Here are two extensions for your consideration. Because the swipe needs to be detected by an event in the page, unfortunately, they require the most intrusive permission (access to all data).