From 1546c00c0cea1a814f1c59a35d40610a86e953e7 Mon Sep 17 00:00:00 2001 From: Chang Yan Date: Fri, 20 Mar 2020 03:00:50 -0700 Subject: [PATCH] =?UTF-8?q?Fix=20adding=20incorrect=20dragging=20element?= =?UTF-8?q?=20when=20handleCanvasPointerD=E2=80=A6=20(#1017)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/App.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/App.tsx b/src/components/App.tsx index 40587128..4d35c27a 100644 --- a/src/components/App.tsx +++ b/src/components/App.tsx @@ -1626,7 +1626,7 @@ export class App extends React.Component { if (element.type === "selection") { this.setState({ selectionElement: element, - draggingElement: element, + draggingElement: hitElement ? hitElement : element, }); } else { globalSceneState.replaceAllElements([