Co-authored-by: dwelle <luzar.david@gmail.com>
This commit is contained in:
@ -3435,23 +3435,16 @@ class App extends React.Component<ExcalidrawProps, AppState> {
|
||||
pointerDownState.hit.hasHitCommonBoundingBoxOfSelectedElements))
|
||||
) {
|
||||
// Deselect selected elements
|
||||
this.setState({
|
||||
selectedElementIds: {},
|
||||
selectedGroupIds: {},
|
||||
});
|
||||
}
|
||||
|
||||
if (draggingElement === null) {
|
||||
// if no element is clicked, clear the selection and redraw
|
||||
this.setState({
|
||||
selectedElementIds: {},
|
||||
selectedGroupIds: {},
|
||||
editingGroupId: null,
|
||||
});
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if (!elementLocked) {
|
||||
if (!elementLocked && draggingElement) {
|
||||
this.setState((prevState) => ({
|
||||
selectedElementIds: {
|
||||
...prevState.selectedElementIds,
|
||||
|
Reference in New Issue
Block a user