Skip to content

Commit 8c61f50

Browse files
committed
fix(desktop): describe the wheel zoom event precisely
1 parent 835a3f3 commit 8c61f50

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎apps/desktop/src/window/DesktopWindow.ts‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -681,10 +681,10 @@ export const make = Effect.gen(function* () {
681681
window.webContents.on("input-event", (_event, input) => {
682682
if (input.type === "gestureScrollEnd") window.webContents.send(TRACKPAD_SCROLL_END_CHANNEL);
683683
});
684-
// Ctrl+wheel and trackpad pinch ask for zoom through this event rather
685-
// than an accelerator, and Chromium leaves applying it to the app. Only
686-
// the main window's own webContents emits it; a preview guest under the
687-
// pointer gets its own event and keeps its own zoom.
684+
// Ctrl+wheel asks for zoom through this event rather than an accelerator,
685+
// and Chromium leaves applying it to the app. Only the main window's own
686+
// webContents emits it; a preview guest under the pointer gets its own
687+
// event and keeps its own zoom.
688688
window.webContents.on("zoom-changed", (_event, direction) => {
689689
if (window.isDestroyed()) return;
690690
runFork(zoomWindow(window, direction));

0 commit comments

Comments
 (0)