From f99c9de72f5b3b6d4bb0daad43daa40a307c3674 Mon Sep 17 00:00:00 2001 From: Benjamin Lu Date: Thu, 4 Sep 2025 14:25:06 -0700 Subject: [PATCH] [fix] Disable link markers on dragged connections (#5358) Set linkMarkerShape to None for links being actively dragged by the mouse to prevent visual artifacts. --- src/lib/litegraph/src/LGraphCanvas.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/lib/litegraph/src/LGraphCanvas.ts b/src/lib/litegraph/src/LGraphCanvas.ts index c30371a5a..8ad10a41d 100644 --- a/src/lib/litegraph/src/LGraphCanvas.ts +++ b/src/lib/litegraph/src/LGraphCanvas.ts @@ -4716,7 +4716,6 @@ export class LGraphCanvas // the connection being dragged by the mouse if (this.linkRenderer) { - const context = this.buildLinkRenderContext() this.linkRenderer.renderLinkDirect( ctx, pos, @@ -4727,7 +4726,10 @@ export class LGraphCanvas colour, fromDirection, dragDirection, - context, + { + ...this.buildLinkRenderContext(), + linkMarkerShape: LinkMarkerShape.None + }, { disabled: false }