Skip snapping if alt key is pressed

This commit is contained in:
hazam 2020-01-09 00:45:30 +05:00
parent f57945f941
commit 2a00d82acc

View file

@ -970,7 +970,7 @@ class App extends React.Component<{}, AppState> {
elementAtPosition.y + elementAtPosition.y +
CANVAS_WINDOW_OFFSET_TOP + CANVAS_WINDOW_OFFSET_TOP +
elementAtPosition.height / 2; elementAtPosition.height / 2;
} else { } else if (!e.altKey) {
// Element must be searched from the end // Element must be searched from the end
// to pick element with the highest z-index // to pick element with the highest z-index
const elementClickedInside = elements const elementClickedInside = elements