[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:
Benjamin Lu
2025-09-04 14:25:06 -07:00
committed by GitHub
parent 2a64f538f3
commit f99c9de72f

View File

@@ -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
} }