Is there a shortcut or a setting in about:config that allows me to use the pinch zoom feature with mouse and keyboard only? I dont' have a touch pad but like the pinch zoom much more than the classic "CSS zoom". I know I could use something like the Windows Magnifyer, but those tools rasterize the image...
Asked
Active
Viewed 4,635 times
1 Answers
22
Starting from Firefox 83, you can set the property mousewheel.with_control.action to 5 in the about:config page.
ctrl + mousewheel will then control the pinch zoom instead of the regular zoom.
If you need another key binding, you can use one of:
mousewheel.default.action
mousewheel.with_alt.action
mousewheel.with_control.action
mousewheel.with_meta.action
mousewheel.with_shift.action
mousewheel.with_win.action
The possible values from Firefox source code are:
0: Nothing happens
1: Scrolling contents
2: Go back or go forward, in your history
3: Zoom in or out (reflowing zoom).
4: Treat vertical wheel as horizontal scroll
5: Zoom in or out (pinch zoom).
(source code reference: WheelPrefs::Action::ACTION_PINCH_ZOOM)
Colin D Bennett
- 109
- 4
Aa17Cc
- 336