Skip to content

Instantly share code, notes, and snippets.

@louischan
Last active March 1, 2022 16:53
Show Gist options
  • Star 11 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save louischan/b478ed027ab1cd6d785f to your computer and use it in GitHub Desktop.
Save louischan/b478ed027ab1cd6d785f to your computer and use it in GitHub Desktop.
Enable Multi-touch Gestures in Firefox
  1. Open about:config in Firefox
  2. Set the following values
  3. Restart Firefox
browser.snapshots.limit           5
browser.gesture.pinch.in          cmd_fullZoomReduce
browser.gesture.pinch.out         cmd_fullZoomEnlarge
browser.gesture.pinch.latched     false
browser.gesture.pinch.threshold   35

You can double tap with two fingers in trackpad to reset zoom level.

@enesdogan00
Copy link

Can't get it working on Linux. Do you know how to fix that?

@louischan
Copy link
Author

Can't get it working on Linux. Do you know how to fix that?

These changes are no longer needed in recent Firefox as pinch-zooming support was added in version 83.0 for Windows and macOS and 88.0 for Linux.

I never tried using gestures in Linux but there is a post in Reddit that might be useful.

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