From 2a00d82acc8c9b17beef71a1c857f624cd943302 Mon Sep 17 00:00:00 2001 From: hazam Date: Thu, 9 Jan 2020 00:45:30 +0500 Subject: [PATCH] Skip snapping if alt key is pressed --- src/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.tsx b/src/index.tsx index 02a27e61d..9a2456f6a 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -970,7 +970,7 @@ class App extends React.Component<{}, AppState> { elementAtPosition.y + CANVAS_WINDOW_OFFSET_TOP + elementAtPosition.height / 2; - } else { + } else if (!e.altKey) { // Element must be searched from the end // to pick element with the highest z-index const elementClickedInside = elements