44

I have an Apple Magic Mouse, and in Safari, when I swipe my fingers left and right on the mouse, first the page scrolls left or right if there is a horizontal scrollbar, and then if there is no scrollbar or the scrollbar is already at the edge, then Safari will go back/forward in my history.

This is particularly annoying when I am trying to scroll left / right, and accidentally scroll too far and navigate off the page.

For example, if I'm answering / editing a question on StackOverflow which has

some really long code block example which is so wide it gets a horizontal scroll bar or the text area has a scroll bar
some really long code block example which is so wide it gets a horizontal scroll bar or the text area has a scroll bar
some really long code block example which is so wide it gets a horizontal scroll bar or the text area has a scroll bar
some really long code block example which is so wide it gets a horizontal scroll bar or the text area has a scroll bar

if I quickly swipe left / right to read the code, I often accidentally leave the page I'm on.

Can I disable the "swipe to navigate" back / forward function of Safari? I only want to use swiping to scroll, not to navigate.

Josh
  • 8,646

2 Answers2

44

Look under "More Gestures" the "Mouse" System Preferences pane: Screen capture of the "More Gestures" panel

Set it to two fingers or disable it altogether.

Josh
  • 8,646
  • 4
    I feel so stupid now. I swear I looked for this before and couldn't find it! Thanks! – Josh Dec 02 '11 at 00:28
  • 1
    is there a way to disable this on Safari only? I like this behavior on all other apps (Preview for example) – whaley Feb 29 '12 at 21:08
  • Without a third party app, no. Check out BetterTouchTool it might be able to do this. – Kassym Dorsel Mar 01 '12 at 20:50
  • 3
    Darn. Its too bad that you have to turn off the feature all together. Its a useful feature for when reading ebooks or pdfs, but an EXTREMELY annoying feature in safari. Anyone know of another solution? –  Mar 16 '12 at 04:56
  • 2
    It's worth clarifying that this solution also works for the same problem in Chrome (and probably other browsers too, although I haven't tested that). – Andrew Ferrier Dec 17 '12 at 16:23
  • Thanks sir, you release us from this curse. @AndrewFerrier This also work for FireFox – GusDeCooL Nov 14 '13 at 03:29
  • 1
    Agreed. This behavior is great, except for web browsers, where it should be taken out and shot. I've been using cmd-bracket far too long to need this gesture. All it's good for is discarding forum posts in progress. – Marshall Eubanks Apr 17 '14 at 19:03
  • This "feature" has destroyed my work so many times! It's so sensitive that I don't even realize I made a swiping motion and BOOM everything I typed in on some web site was erased. Browsing forward again doesn't always bring it back. Thank you for this answer. – spoulson Oct 05 '16 at 13:53
7

BetterTouchTool is a free solution: it lets you set up multi-touch gestures differently between different applications. I've had no issues using it yet, although I've only been doing so for a few days and only on Lion. It has received a respectable bunch of positive mentions from places like TUAW, MacWorld, and Lifehacker, and the only less-than-great reviews I've been able to find for it seem to be along the general lines of "I wish it also brushed my teeth" and "I turned off $feature and $feature stopped working"

Personally, it has saved my MagicMouse from the ignominy of sharing duty and mousing space with a wired Mighty Mouse.

Bill Cole
  • 550