Apply patch from a65b8ec8c139a733a857e5ab85b6b1e9ac9ecdd1

This commit is contained in:
Benjamin Lu
2025-08-05 06:49:38 -04:00
parent a041cc8e0e
commit 9e3b845884

View File

@@ -2478,8 +2478,14 @@ export class LGraphCanvas implements CustomEventDispatcher<LGraphCanvasEventMap>
}
// 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) {