diff --git a/src/containers/stage.jsx b/src/containers/stage.jsx index 9ddd0d90794e80f979cab56ca9339e79b8c138f0..3cc913a2e4a46d0864f0d8236e0016ec478632cf 100644 --- a/src/containers/stage.jsx +++ b/src/containers/stage.jsx @@ -362,6 +362,7 @@ class Stage extends React.Component { this.drawDragCanvas(drawableData); this.positionDragCanvas(x, y); this.props.vm.postSpriteInfo({visible: false}); + this.props.vm.renderer.draw(); } } onStopDrag (mouseX, mouseY) { @@ -387,12 +388,9 @@ class Stage extends React.Component { } this.props.vm.postSpriteInfo(spriteInfo); // Then clear the dragging canvas and stop drag (potentially slow if selecting sprite) - setTimeout(() => { - this.clearDragCanvas(); - setTimeout(() => { - commonStopDragActions(); - }, 30); - }, 30); + this.clearDragCanvas(); + commonStopDragActions(); + this.props.vm.renderer.draw(); } else { commonStopDragActions(); }