From f43c7eba5590a7bff4f72e80fc7071739c24ccd8 Mon Sep 17 00:00:00 2001 From: moklick Date: Wed, 11 Jan 2023 14:55:02 +0100 Subject: [PATCH] refactor(selection): keep node selection on right click #2733 --- packages/core/src/container/Pane/index.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/core/src/container/Pane/index.tsx b/packages/core/src/container/Pane/index.tsx index 2762a17a..e92f1d79 100644 --- a/packages/core/src/container/Pane/index.tsx +++ b/packages/core/src/container/Pane/index.tsx @@ -191,6 +191,9 @@ const Pane = memo( }; const onMouseUp = (event: ReactMouseEvent) => { + if (event.button !== 0) { + return; + } const { userSelectionRect } = store.getState(); // We only want to trigger click functions when in selection mode if // the user did not move the mouse.