From 4359e2935d1d582d72a9e36654126eab474d169d Mon Sep 17 00:00:00 2001 From: David Luzar Date: Thu, 4 Aug 2022 20:31:56 +0200 Subject: [PATCH] fix: line deselected when shift-dragging point outside editor (#5540) --- src/components/App.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/App.tsx b/src/components/App.tsx index 469768b8..634f671b 100644 --- a/src/components/App.tsx +++ b/src/components/App.tsx @@ -4838,7 +4838,8 @@ class App extends React.Component { ...idsOfSelectedElementsThatAreInGroups, }, })); - } else { + // if not gragging a linear element point (outside editor) + } else if (!this.state.selectedLinearElement?.isDragging) { // remove element from selection while // keeping prev elements selected