From a453cc9c20b65e6d08cd884423c0c35e1df90131 Mon Sep 17 00:00:00 2001 From: Jake Bartles <bartljak@gmail.com> Date: Wed, 4 Oct 2017 13:12:08 -0400 Subject: [PATCH] all changes reverted, bugs should be gone --- src/containers/stage.jsx | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/src/containers/stage.jsx b/src/containers/stage.jsx index c34aa4d5f..e60419e5b 100644 --- a/src/containers/stage.jsx +++ b/src/containers/stage.jsx @@ -179,16 +179,15 @@ class Stage extends React.Component { this.updateRect(); const {x, y} = getEventXY(e); const mousePosition = [x - this.rect.left, y - this.rect.top]; - if (true) { - this.setState({ - mouseDown: true, - mouseDownPosition: mousePosition, - mouseDownTimeoutId: setTimeout( - this.onStartDrag.bind(this, mousePosition[0], mousePosition[1]), - 500 - ) - }); - } + this.setState({ + mouseDown: true, + mouseDownPosition: mousePosition, + mouseDownTimeoutId: setTimeout( + this.onStartDrag.bind(this, mousePosition[0], mousePosition[1]), + 500 + ) + }); + const data = { isDown: true, x: mousePosition[0], -- GitLab