


If you do not have a scroll-enabled mouse, there are tools for virtual scrolling with a keypress+drag (e.g. Easily move and zoom windows (on one display or another display) using either the mouse or keyboard.

Also, it does not work at all for moving full-screened apps around in macOS. Scrolling up/down with a mouse wheel will change the zoom. You can start by looking to see if the CTRL key is physically pressed. This will happen in any application including native Windows programs like File explorer or WordPad. When I use it to click and drag windows around (my main use case) it does not show the window moving with the mouse, only jumping to the mouse location when buttons are released. If you didn’t know, if you press any of the CTRL keys and scroll upwards or downwards, the mouse’s scroll will produce zooming.
#HAMMERSPOON MOUSE ZOOM CODE#
The code below is as close as I've gotten, but it's not perfect. I'm looking for a way to map a key combo (something like fn+z) to a left mouse click that is maintained for as long as the key press is maintained.
