Skip to content

Commit 068279e

Browse files
authored
Replace reactive DragAndScale proxy with callback (#3915)
1 parent 2885ebf commit 068279e

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/components/graph/SelectionOverlay.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,7 @@ whenever(
5757
{ immediate: true }
5858
)
5959

60-
whenever(() => canvasStore.getCanvas().ds.state, positionSelectionOverlay, {
61-
deep: true
62-
})
60+
canvasStore.getCanvas().ds.onChanged = positionSelectionOverlay
6361

6462
watch(
6563
() => canvasStore.canvas?.state?.draggingItems,

src/scripts/app.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,6 @@ export class ComfyApp {
769769
this.canvas = new LGraphCanvas(canvasEl, this.graph)
770770
// Make canvas states reactive so we can observe changes on them.
771771
this.canvas.state = reactive(this.canvas.state)
772-
this.canvas.ds.state = reactive(this.canvas.ds.state)
773772

774773
// @ts-expect-error fixme ts strict error
775774
this.ctx = canvasEl.getContext('2d')

0 commit comments

Comments
 (0)