Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

2 Answers 2

up vote 5 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 :) –  modchan 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? –  modchan 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. –  modchan Feb 16 '13 at 17:05

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.