fix selecting elem inside already selected element (#349)
This commit is contained in:
parent
5887be6eda
commit
58ad6d741d
@ -510,13 +510,8 @@ export class App extends React.Component<{}, AppState> {
|
|||||||
document.documentElement.style.cursor = `${resizeHandle}-resize`;
|
document.documentElement.style.cursor = `${resizeHandle}-resize`;
|
||||||
isResizingElements = true;
|
isResizingElements = true;
|
||||||
} else {
|
} else {
|
||||||
const selected = getElementAtPosition(
|
|
||||||
elements.filter(el => el.isSelected),
|
|
||||||
x,
|
|
||||||
y
|
|
||||||
);
|
|
||||||
// clear selection if shift is not clicked
|
// clear selection if shift is not clicked
|
||||||
if (!selected && !e.shiftKey) {
|
if (!e.shiftKey) {
|
||||||
elements = clearSelection(elements);
|
elements = clearSelection(elements);
|
||||||
}
|
}
|
||||||
hitElement = getElementAtPosition(elements, x, y);
|
hitElement = getElementAtPosition(elements, x, y);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user