mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-30 11:11:53 +00:00
Apply patch from a65b8ec8c139a733a857e5ab85b6b1e9ac9ecdd1
This commit is contained in:
@@ -2478,8 +2478,14 @@ export class LGraphCanvas implements CustomEventDispatcher<LGraphCanvasEventMap>
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Mousedown callback - can block drag
|
// 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
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!this.allow_dragnodes) return
|
||||||
|
|
||||||
// Check for resize AFTER checking all other interaction areas
|
// Check for resize AFTER checking all other interaction areas
|
||||||
if (!node.flags.collapsed) {
|
if (!node.flags.collapsed) {
|
||||||
|
|||||||
Reference in New Issue
Block a user