diff --git a/src/containers/stage.jsx b/src/containers/stage.jsx index e60419e5b215e2fa646af27d856d96d38eeade23..63d1fd1709c31414cc874e5d0e67be6bce3506b5 100644 --- a/src/containers/stage.jsx +++ b/src/containers/stage.jsx @@ -179,15 +179,16 @@ class Stage extends React.Component { this.updateRect(); const {x, y} = getEventXY(e); const mousePosition = [x - this.rect.left, y - this.rect.top]; - this.setState({ - mouseDown: true, - mouseDownPosition: mousePosition, - mouseDownTimeoutId: setTimeout( - this.onStartDrag.bind(this, mousePosition[0], mousePosition[1]), - 500 - ) - }); - + if (e.which !== 3) { + this.setState({ + mouseDown: true, + mouseDownPosition: mousePosition, + mouseDownTimeoutId: setTimeout( + this.onStartDrag.bind(this, mousePosition[0], mousePosition[1]), + 500 + ) + }); + } const data = { isDown: true, x: mousePosition[0],