Skip to content

Commit 3d520cf

Browse files
committed
Set dirty to ensure disconnection circle updates
Moving the draw operation to the background means that the distance check logic was no longer being tracked. since only a single bg draw was made. This is slightly less than ideal, but it's reasonable to expect that the user will continually be dragging the mouse when moving links
1 parent 4372c6b commit 3d520cf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib/litegraph/src/LGraphCanvas.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4770,6 +4770,7 @@ export class LGraphCanvas implements CustomEventDispatcher<LGraphCanvasEventMap>
47704770
}
47714771
)
47724772
}
4773+
if (renderLink instanceof MovingInputLink) this.setDirty(false, true)
47734774

47744775
ctx.fillStyle = colour
47754776
ctx.beginPath()

0 commit comments

Comments
 (0)