Skip to content

Commit b8006ae

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 8fbf038 commit b8006ae

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
@@ -5015,6 +5015,7 @@ export class LGraphCanvas implements CustomEventDispatcher<LGraphCanvasEventMap>
50155015
}
50165016
)
50175017
}
5018+
if (renderLink instanceof MovingInputLink) this.setDirty(false, true)
50185019

50195020
ctx.fillStyle = colour
50205021
ctx.beginPath()

0 commit comments

Comments
 (0)