fix: line deselected when shift-dragging point outside editor (#5540)

This commit is contained in:
David Luzar 2022-08-04 20:31:56 +02:00 committed by GitHub
parent 3d9d398378
commit 4359e2935d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4838,7 +4838,8 @@ class App extends React.Component<AppProps, AppState> {
...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