Repository navigation
Desktop (macOS): zoom with ⌘ + mouse wheel #43812
mchataigner
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
On macOS, ⌘ + mouse wheel doesn't zoom the desktop app. ⌘ + / ⌘ − do, and so does Ctrl + wheel, but on a Mac the zoom modifier everyone reaches for is ⌘.
Why it doesn't work today
Chromium only treats Ctrl + wheel as a zoom gesture, and that's the only one that fires Electron's
zoom-changed, whichDesktopWindowturns intozoomWindow(the ±0.5 step that ⌘ + / ⌘ − use). ⌘ + wheel just scrolls the page. Checked on 0.1.12.A fix that works
I'm running this locally, added to the darwin-only block of
apps/desktop/src/preload.ts, and it works well with both a mouse and a trackpad:Routing it through the existing
zoomWindowfrom the main process (over IPC) would keep a single code path.Request
Make ⌘ + wheel zoom the window on macOS, as Ctrl + wheel does on Windows and Linux.
Related
All reactions