Skip to content

Instantly share code, notes, and snippets.

@babakness
Last active February 20, 2024 19:17
Show Gist options
  • Save babakness/839ee2fb307816a77dbf8feeb3f57d00 to your computer and use it in GitHub Desktop.
Save babakness/839ee2fb307816a77dbf8feeb3f57d00 to your computer and use it in GitHub Desktop.
A list of commands to disable the back gesture for Chrome, FireFox, Brave, and Safari

When working with online editor, the back gesture on a Mac can become very frustrating. Here are some helpful commands disable the back gesture:

# Disable back gesture in specific apps

# Chrome
defaults write com.google.Chrome AppleEnableSwipeNavigateWithScrolls -bool FALSE
# FireFox
defaults write org.mozilla.firefox AppleEnableSwipeNavigateWithScrolls -bool FALSE
# Brave
defaults write com.brave.Browser AppleEnableSwipeNavigateWithScrolls -bool FALSE
# Safari
defaults write com.apple.Safari AppleEnableSwipeNavigateWithScrolls -bool FALSE

You'll have to restart your browser for the change to take effect. To turn back on, change FALSE to TRUE.

@EugeneTarasenko
Copy link

Is there a way to disable the scrolling gesture (swipe with 2 fingers up/down) in the same way?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment