Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I scroll along the page or some scrollbox with two fingers on MacBook Pro touchpad, and it can be no longer scrolled to the left, Firefox decides I want to go back in history.

What can I do to disable history navigation using two-finger swipe in Firefox 17? I'm happy with using Backspace for going backwards, and wiping out all the text I was writing somewhere in some forms when I accidentally scroll more than I'm allowed is really frustrating.

share|improve this question
up vote 14 down vote accepted

I like the following solution better (than the existing answer) because it only affects Firefox:

  1. In Firefox, go to "about:config"
  2. Change the value for "browser.gesture.swipe.left" to "cmd_scrollLeft" (instead of "Browser:BackOrBackDuplicate")
  3. Change the value for "browser.gesture.swipe.right" to "cmd_scrollRight" (instead of "Browser:ForwardOrForwardDuplicate")

enter image description here

share|improve this answer
    
This is awesome! Finally there is solution that WORKS. Thank you so much! And welcome to SuperUser — good start :) – toriningen Sep 10 '13 at 0:53

UPDATE:

There is a native way to do this. Go to System Preferences / Trackpad / More Gestures and deactivate the checkbox for "Swipe between pages" (first checkbox). This works at least for Mountain Lion.


The old, non-functional answer was:

I do not know of a native option in OSX (ML, 10.8.x), but there is a nice trick to do it:

Download the free BetterTouchTool. It lets you map a huge amount of functions to trackpad & mouse gestures as well as keyboard shortcuts. You can set "No action" and you can decide, which applications should know your new custom gesture/shortcut.

So I just mapped the two finger swipe (left & right) to "No action" only for Firefox, Chrome, Safari, Opera and Sleipnir.

Hugely useful and it will solve your problem.

share|improve this answer
    
Good first post. Sounds like a potential solution. – nixda Dec 30 '12 at 3:32
    
Unfortunately, tried on OSX Lion (10.7.x) and latest currently available BTT — it surely handles two-finger swipes in either direction, but default action (e.g. history navigation) is also triggered with wherever action I set for swipe in BTT. So if I set "show Mission Control" action for swipe, I get both history navigation AND mission control invokation. :( Is there something additional to look for? – toriningen Dec 30 '12 at 9:22
    
Oops. How embarrassing! Good: I tested it myself before posting. Bad: I tried it on a browser tab without a history (so obviously there is nowhere to swipe to). But: I got it working. In System preferences / Trackpad / More Gestures. I can set "Swipe between pages" off. This works for me (Mountain Lion) I am updating the answer to reflect this. – Oliver Dec 30 '12 at 11:23
    
Disabling system-wide swipe gesture disables it not only in Firefox, but also in Preview and Finder, and other apps where it's considered useful, and makes them inconvenient to use. – toriningen Feb 16 '13 at 17:05

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .