From 715efc054e8a0a4592519e7a2d692ba30c38ef14 Mon Sep 17 00:00:00 2001 From: Giovanni Giordano Date: Thu, 2 Jan 2020 15:56:34 +0100 Subject: [PATCH] Remove extra check for dragging --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 115e979d..7fe1e0dd 100644 --- a/src/index.js +++ b/src/index.js @@ -248,7 +248,7 @@ class App extends React.Component { this.setState({ draggingElement: selectedElement }); } - isDraggingElements = elements.some(element => element.isSelected && isInsideAnElement(x, y)); + isDraggingElements = elements.some(element => element.isSelected); if (isDraggingElements) { document.documentElement.style.cursor = "move";