From ce992db802bc615713155be109e3e1739e9996ea Mon Sep 17 00:00:00 2001 From: braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Tue, 17 Jan 2023 20:01:04 +0100 Subject: [PATCH] refactor(core): keep user selection on right click Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com> --- packages/core/src/container/Pane/Pane.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/core/src/container/Pane/Pane.vue b/packages/core/src/container/Pane/Pane.vue index 03c61341..fcf85879 100644 --- a/packages/core/src/container/Pane/Pane.vue +++ b/packages/core/src/container/Pane/Pane.vue @@ -178,6 +178,8 @@ function onMouseMove(event: MouseEvent) { function onMouseUp(event: MouseEvent) { if (!hasActiveSelection.value) return + if (event.button !== 0) return + // We only want to trigger click functions when in selection mode if // the user did not move the mouse. if (!userSelectionActive.value && userSelectionRect.value && event.target === container.value) {