fix(core): emit pane mouse move if no active selection exists

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
braks
2023-05-05 11:02:58 +02:00
committed by Braks
parent f1c08b82b6
commit 98e6f17002
+5 -3
View File
@@ -149,16 +149,18 @@ function onMouseDown(event: MouseEvent) {
}
function onMouseMove(event: MouseEvent) {
if (!isSelecting || !containerBounds.value || !userSelectionRect.value) {
return
}
if (!hasActiveSelection.value) {
return emits.paneMouseMove(event)
}
if (!isSelecting || !containerBounds.value || !userSelectionRect.value) {
return
}
if (!userSelectionActive.value) {
userSelectionActive.value = true
}
if (nodesSelectionActive.value) {
nodesSelectionActive.value = false
}