Skip to content

Instantly share code, notes, and snippets.

@sinewalker
Last active November 8, 2023 08:47
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sinewalker/a8184cb7c38ee584a3de1dc718ef561d to your computer and use it in GitHub Desktop.
Save sinewalker/a8184cb7c38ee584a3de1dc718ef561d to your computer and use it in GitHub Desktop.
Firefox Reverse/"Natural" scroll wheel direction

Open about:config and set mousewheel.default.delta_multiplier_y to negative, e.g. -100 if the current value is (the default) 100

This should only be necessary on platforms where Firefox isn't honouring the global setting. For instance on a Mac or Windows it's not necessary if you've set the scrolling direction to reverse globally, but on Linux, Firefox doesn't honour KDE's setting. I haven't tested GNOME ….

The default setting is fine for an actual mouse-wheel, but when using a touchpad to two-finger-scroll (or a trackball), it's more Natural for the page to scroll down when you swipe your fingers up: it seems more like how a paper page will shift.

@jameskyle
Copy link

on ubuntu 18.04 mate-desktop with natural scrolling options set for mouse and touchpad in /usr/share/X11/xorg.conf.d/40-libinput.conf

This is not necessary.

@abrahamrhoffman
Copy link

Huzzah! You made my day!

@genghis-yang
Copy link

On Ubuntu 20.04 GNOME desktop, it seems to follow the global settings.

@cwgstreet
Copy link

on Ubuntu 20.4 LTS installed on an old mid-2010 MacBook Pro, it was driving me nuts that I had Natural Scrolling enabled in Mouse and Touchpad settings and scrolling worked exactly like I wanted everywhere except for Firefox. Changing the mousewheel.default.delta_multiplier_y to negative, e.g. -100, worked like a charm for me. Thank you!

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