mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-04-14 16:40:58 -04:00
fix selecting elem inside already selected element (#349)
This commit is contained in:
parent
5887be6eda
commit
58ad6d741d
1 changed files with 1 additions and 6 deletions
|
@ -510,13 +510,8 @@ export class App extends React.Component<{}, AppState> {
|
|||
document.documentElement.style.cursor = `${resizeHandle}-resize`;
|
||||
isResizingElements = true;
|
||||
} else {
|
||||
const selected = getElementAtPosition(
|
||||
elements.filter(el => el.isSelected),
|
||||
x,
|
||||
y
|
||||
);
|
||||
// clear selection if shift is not clicked
|
||||
if (!selected && !e.shiftKey) {
|
||||
if (!e.shiftKey) {
|
||||
elements = clearSelection(elements);
|
||||
}
|
||||
hitElement = getElementAtPosition(elements, x, y);
|
||||
|
|
Loading…
Add table
Reference in a new issue