From 98e6f1700222003d6b4b6c083580fbdb415dac85 Mon Sep 17 00:00:00 2001 From: braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Thu, 4 May 2023 10:15:07 +0200 Subject: [PATCH] fix(core): emit pane mouse move if no active selection exists Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com> --- packages/core/src/container/Pane/Pane.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/core/src/container/Pane/Pane.vue b/packages/core/src/container/Pane/Pane.vue index d6d71b6f..a9de4583 100644 --- a/packages/core/src/container/Pane/Pane.vue +++ b/packages/core/src/container/Pane/Pane.vue @@ -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 }