refactor(core): keep user selection on right click

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
braks
2023-01-17 20:01:04 +01:00
committed by Braks
parent d8fe5432ad
commit ce992db802

View File

@@ -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) {