mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-01 22:09:55 +00:00
Fix new link follows pointer until menu closed (#3628)
Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 117 KiB After Width: | Height: | Size: 104 KiB |
@@ -254,7 +254,7 @@ const cancelNextReset = (e: CustomEvent<CanvasPointerEvent>) => {
|
||||
e.preventDefault()
|
||||
|
||||
const canvas = canvasStore.getCanvas()
|
||||
canvas._highlight_pos = [e.detail.canvasX, e.detail.canvasY]
|
||||
canvas.linkConnector.state.snapLinksPos = [e.detail.canvasX, e.detail.canvasY]
|
||||
useEventListener(canvas.linkConnector.events, 'reset', preventDefault, {
|
||||
once: true
|
||||
})
|
||||
@@ -291,7 +291,6 @@ const reset = () => {
|
||||
if (disconnectOnReset) canvas.linkConnector.disconnectLinks()
|
||||
|
||||
canvas.linkConnector.reset()
|
||||
canvas._highlight_pos = undefined
|
||||
canvas.setDirty(true, true)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user