mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-11-14 17:54:47 +01:00
fix: deselect linear element when clicked inside bounding box outside editor (#5579)
This commit is contained in:
@@ -4179,6 +4179,7 @@ class App extends React.Component<AppProps, AppState> {
|
|||||||
if (didDrag) {
|
if (didDrag) {
|
||||||
pointerDownState.lastCoords.x = pointerCoords.x;
|
pointerDownState.lastCoords.x = pointerCoords.x;
|
||||||
pointerDownState.lastCoords.y = pointerCoords.y;
|
pointerDownState.lastCoords.y = pointerCoords.y;
|
||||||
|
pointerDownState.drag.hasOccurred = true;
|
||||||
if (
|
if (
|
||||||
this.state.editingLinearElement &&
|
this.state.editingLinearElement &&
|
||||||
!this.state.editingLinearElement.isDragging
|
!this.state.editingLinearElement.isDragging
|
||||||
@@ -4936,7 +4937,6 @@ class App extends React.Component<AppProps, AppState> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (
|
if (
|
||||||
!this.state.selectedLinearElement &&
|
|
||||||
!this.state.editingLinearElement &&
|
!this.state.editingLinearElement &&
|
||||||
!pointerDownState.drag.hasOccurred &&
|
!pointerDownState.drag.hasOccurred &&
|
||||||
!this.state.isResizing &&
|
!this.state.isResizing &&
|
||||||
|
|||||||
Reference in New Issue
Block a user