From db39a13405347e82da40854a92178902815b6976 Mon Sep 17 00:00:00 2001 From: Terry Jia Date: Wed, 20 Aug 2025 21:11:31 -0400 Subject: [PATCH] add support for cmd + wheel to zoom in/out on Mac --- src/lib/litegraph/src/LGraphCanvas.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/litegraph/src/LGraphCanvas.ts b/src/lib/litegraph/src/LGraphCanvas.ts index 7f15d2ceb3..ecb0990dfc 100644 --- a/src/lib/litegraph/src/LGraphCanvas.ts +++ b/src/lib/litegraph/src/LGraphCanvas.ts @@ -3499,8 +3499,8 @@ export class LGraphCanvas // Detect if this is a trackpad gesture or mouse wheel const isTrackpad = this.pointer.isTrackpadGesture(e) - if (e.ctrlKey || LiteGraph.canvasNavigationMode === 'legacy') { - // Legacy mode or standard mode with ctrl - use wheel for zoom + if (e.ctrlKey || e.metaKey || LiteGraph.canvasNavigationMode === 'legacy') { + // Legacy mode or standard mode with ctrl/cmd - use wheel for zoom if (isTrackpad) { // Trackpad gesture - use smooth scaling scale *= 1 + e.deltaY * (1 - this.zoom_speed) * 0.18