mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-29 02:32:18 +00:00
[fix] Disable link markers on dragged connections (#5358)
Set linkMarkerShape to None for links being actively dragged by the mouse to prevent visual artifacts.
This commit is contained in:
@@ -4716,7 +4716,6 @@ export class LGraphCanvas
|
|||||||
|
|
||||||
// the connection being dragged by the mouse
|
// the connection being dragged by the mouse
|
||||||
if (this.linkRenderer) {
|
if (this.linkRenderer) {
|
||||||
const context = this.buildLinkRenderContext()
|
|
||||||
this.linkRenderer.renderLinkDirect(
|
this.linkRenderer.renderLinkDirect(
|
||||||
ctx,
|
ctx,
|
||||||
pos,
|
pos,
|
||||||
@@ -4727,7 +4726,10 @@ export class LGraphCanvas
|
|||||||
colour,
|
colour,
|
||||||
fromDirection,
|
fromDirection,
|
||||||
dragDirection,
|
dragDirection,
|
||||||
context,
|
{
|
||||||
|
...this.buildLinkRenderContext(),
|
||||||
|
linkMarkerShape: LinkMarkerShape.None
|
||||||
|
},
|
||||||
{
|
{
|
||||||
disabled: false
|
disabled: false
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user