diff --git a/src/containers/stage.jsx b/src/containers/stage.jsx index 8687923e5b93bc00b8a4b5fbdd1a5a521c2d821d..a56ae7330a19f49fb16959c66e3d09789f699216 100644 --- a/src/containers/stage.jsx +++ b/src/containers/stage.jsx @@ -186,9 +186,6 @@ class Stage extends React.Component { mouseDown: false, mouseDownPosition: null }); - if (this.state.isDragging) { - this.onStopDrag(); - } const data = { isDown: false, x: x - this.rect.left, @@ -196,6 +193,10 @@ class Stage extends React.Component { canvasWidth: this.rect.width, canvasHeight: this.rect.height }; + if (this.state.isDragging) { + this.onStopDrag(); + data.wasDragged = true; + } this.props.vm.postIOData('mouse', data); } onMouseDown (e) {