From eb93bb3c22c9c44e00e05f914216555cdcb3cf5d Mon Sep 17 00:00:00 2001 From: filtered <176114999+webfiltered@users.noreply.github.com> Date: Tue, 1 Jul 2025 10:06:10 -0700 Subject: [PATCH] Fix control + mouse-wheel zoom in trackpad mode (#1093) --- src/LGraphCanvas.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/LGraphCanvas.ts b/src/LGraphCanvas.ts index 3c9b0f83e..18ff315d4 100644 --- a/src/LGraphCanvas.ts +++ b/src/LGraphCanvas.ts @@ -3182,7 +3182,7 @@ export class LGraphCanvas implements CustomEventDispatcher LiteGraph.macTrackpadGestures && (!LiteGraph.macGesturesRequireMac || navigator.userAgent.includes("Mac")) ) { - if (e.ctrlKey && !Number.isInteger(e.deltaY)) { + if (e.ctrlKey) { scale *= 1 + e.deltaY * (1 - this.zoom_speed) * 0.18 this.ds.changeScale(scale, [e.clientX, e.clientY], false) } else {