[Bug] Fix selection toolbox select+drag (#3235)

Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
Chenlei Hu
2025-03-25 15:27:25 -04:00
committed by GitHub
parent 0518b170d3
commit 9988fb8f1e
3 changed files with 26 additions and 1 deletions

View File

@@ -91,7 +91,12 @@ watch(
positionSelectionOverlay(canvasStore.canvas as LGraphCanvas)
}, 100)
} else {
visible.value = false
// Selection change update to visible state is delayed by a frame. Here
// we also delay a frame so that the order of events is correct when
// the initial selection and dragging happens at the same time.
requestAnimationFrame(() => {
visible.value = false
})
}
}
)

View File

@@ -3064,6 +3064,9 @@
"extra_pos_embedder_": {
"name": "extra_pos_embedder."
},
"final_layer_": {
"name": "capa_final."
},
"model1": {
"name": "model1"
},