diff --git a/src/containers/stage.jsx b/src/containers/stage.jsx index c34aa4d5ff3ec494df9902d9555478bc39b62679..e60419e5b215e2fa646af27d856d96d38eeade23 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],