We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11f5439 commit ea9cb3cCopy full SHA for ea9cb3c
src/lib/litegraph/src/LGraphCanvas.ts
@@ -3498,8 +3498,11 @@ export class LGraphCanvas
3498
3499
// Detect if this is a trackpad gesture or mouse wheel
3500
const isTrackpad = this.pointer.isTrackpadGesture(e)
3501
+ const isCtrlOrMacMeta =
3502
+ e.ctrlKey || (e.metaKey && navigator.platform.includes('Mac'))
3503
+ const isZoomModifier = isCtrlOrMacMeta && !e.altKey && !e.shiftKey
3504
- if (e.ctrlKey || LiteGraph.canvasNavigationMode === 'legacy') {
3505
+ if (isZoomModifier || LiteGraph.canvasNavigationMode === 'legacy') {
3506
// Legacy mode or standard mode with ctrl - use wheel for zoom
3507
if (isTrackpad) {
3508
// Trackpad gesture - use smooth scaling
0 commit comments