diff --git a/src/containers/stage.jsx b/src/containers/stage.jsx index c386112b3858cbfbc8bc4040c84bff2ec88ac88b..8687923e5b93bc00b8a4b5fbdd1a5a521c2d821d 100644 --- a/src/containers/stage.jsx +++ b/src/containers/stage.jsx @@ -188,16 +188,15 @@ class Stage extends React.Component { }); if (this.state.isDragging) { this.onStopDrag(); - } else { - const data = { - isDown: false, - x: x - this.rect.left, - y: y - this.rect.top, - canvasWidth: this.rect.width, - canvasHeight: this.rect.height - }; - this.props.vm.postIOData('mouse', data); } + const data = { + isDown: false, + x: x - this.rect.left, + y: y - this.rect.top, + canvasWidth: this.rect.width, + canvasHeight: this.rect.height + }; + this.props.vm.postIOData('mouse', data); } onMouseDown (e) { this.updateRect();