mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-23 16:24:06 +00:00
Improve connecting link logic (#697)
### Current - Connections are disconnected the moment a link starts being dragged - Reseating a connection where it came from creates a new connection - If the process is somehow interrupted, the links are already gone ### Proposed - Connection is disconnected after a new connection is made - Rendering is bypassed for the link segment being moved - Does nothing if dropping a link exactly where it came from - Adds early return when trying to connect a node to itself
This commit is contained in:
@@ -290,6 +290,8 @@ export interface ConnectingLink extends IInputOrOutput {
|
||||
pos: Point
|
||||
direction?: LinkDirection
|
||||
afterRerouteId?: RerouteId
|
||||
/** The link being moved, or `undefined` if creating a new link. */
|
||||
link?: LLink
|
||||
}
|
||||
|
||||
interface IContextMenuBase {
|
||||
|
||||
Reference in New Issue
Block a user