From 9e3b8458842bd07b5090ca574ee044e0fdc6aa93 Mon Sep 17 00:00:00 2001 From: Benjamin Lu Date: Tue, 5 Aug 2025 06:49:38 -0400 Subject: [PATCH] Apply patch from a65b8ec8c139a733a857e5ab85b6b1e9ac9ecdd1 --- src/lib/litegraph/src/LGraphCanvas.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/lib/litegraph/src/LGraphCanvas.ts b/src/lib/litegraph/src/LGraphCanvas.ts index 1b67ea82a..c63fb8b88 100644 --- a/src/lib/litegraph/src/LGraphCanvas.ts +++ b/src/lib/litegraph/src/LGraphCanvas.ts @@ -2478,8 +2478,14 @@ export class LGraphCanvas implements CustomEventDispatcher } // Mousedown callback - can block drag - if (node.onMouseDown?.(e, pos, this) || !this.allow_dragnodes) + if (node.onMouseDown?.(e, pos, this)) { + // Node handled the event (e.g., title button clicked) + // Set a no-op click handler to prevent fallback canvas dragging + pointer.onClick = () => {} return + } + + if (!this.allow_dragnodes) return // Check for resize AFTER checking all other interaction areas if (!node.flags.collapsed) {