I had some requests to turn this code snippet into a project.
Now you can install and keep this project updated using the Project Updater.
What it does:
Hold down the command/control key and scroll with mousewheel or trackpad to zoom both axes of a graph simultaneously. Holding down the shift key as well as command/ctrl accelerates the zoom factor. Expansion/contraction is centred at the mouse cursor position, so you can position your mouse and command-shift-scroll to zoom in rapidly on a point of interest.
Note that you can already use the mousewheel/trackpad to change the axis range if you hover over an axis, that's built in.
A very similar project already exists, but is probably not maintained anymore: https://www.wavemetrics.com/project/ScrollWheelZoom
First release as a project
Forum
Support
Gallery
Learn More
Learn More
Learn More