为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

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

more options

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.

所有回复 (5)

more options

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.

more options

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.

more options

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

more options

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";
more options

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).