Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

Is it possible to disable magic mouse back-forward gesture only in XCODE? While in browser it is fine, in XCODE it just totaly unwanted feature for me.

share|improve this question
Please for the log of god someone find an answer to this! – onedayitwillmake Nov 18 '12 at 1:52
You cannot configure application specific gestures in OS X itself. You could though try the free BetterTouchTool to add browser specific gestures for back/forward and disable the global system gesture. – MacLemon Nov 23 '12 at 16:32
I was going to add an answer, but @MacLemon's suggestion is probably the best way for now. Unless you want to write a custom daemon that checks for the program being open and writing the string in the plist file for the mouse... – nerdwaller Nov 26 '12 at 0:21
@nerdwaller it would be great if you could tell me which string exactly disables 'swipe between pages' gesture :) I've already written daemon which tracks application switching, but I can't figure out what string I should write to defaults to disable pages swipe thing. – dig Nov 26 '12 at 22:06
@dig It will be somewhere similar to this: defaults write MouseHorizontalScroll -bool NO That obviously disables Horizontal Scrolling, but it will be around there. I would look for you, but I got rid of my apple a while ago. Just run sudo find / -name "", should get you to the right file and you could look through for swipe gestures. The command to disable should look similar to the above. When I get home, I can try to find my wife's laptop if she will let me try it. – nerdwaller Nov 26 '12 at 22:18

In short: disable it on the mouse:

defaults write AppleEnableMouseSwipeNavigateWithScrolls -bool NO

for trackpads use:

defaults write AppleEnableSwipeNavigateWithScrolls -bool NO

Source: []

share|improve this answer
wow, thanks. Xcode is so crappy that it hangs constantly if the back swipe is on. Did I mention I hate xcode? thanks. – SpaceDog Mar 26 at 15:34

Your Answer


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.