From 27cf5ed17e20b0b90dc98e8a151a598d2ea679c4 Mon Sep 17 00:00:00 2001 From: Aakansha Doshi Date: Tue, 16 Aug 2022 23:05:38 +0530 Subject: [PATCH] fix: deselect linear element when clicked inside bounding box outside editor (#5579) --- src/components/App.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/App.tsx b/src/components/App.tsx index 309f29de..fc426a89 100644 --- a/src/components/App.tsx +++ b/src/components/App.tsx @@ -4179,6 +4179,7 @@ class App extends React.Component { if (didDrag) { pointerDownState.lastCoords.x = pointerCoords.x; pointerDownState.lastCoords.y = pointerCoords.y; + pointerDownState.drag.hasOccurred = true; if ( this.state.editingLinearElement && !this.state.editingLinearElement.isDragging @@ -4936,7 +4937,6 @@ class App extends React.Component { } if ( - !this.state.selectedLinearElement && !this.state.editingLinearElement && !pointerDownState.drag.hasOccurred && !this.state.isResizing &&