From 0f6bcb7205527bf3bfb440c07d549427361386f1 Mon Sep 17 00:00:00 2001 From: hazam Date: Thu, 9 Jan 2020 00:34:53 +0500 Subject: [PATCH] Added comment --- src/index.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/index.tsx b/src/index.tsx index ac2f46bd1..2eae82921 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -971,6 +971,8 @@ class App extends React.Component<{}, AppState> { CANVAS_WINDOW_OFFSET_TOP + elementAtPosition.height / 2; } else { + // Element must be searched from the end + // to pick element with the highest z-index const elementClickedInside = elements .slice() .reverse()