File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -362,6 +362,7 @@ class Stage extends React.Component {
362
362
this . drawDragCanvas ( drawableData ) ;
363
363
this . positionDragCanvas ( x , y ) ;
364
364
this . props . vm . postSpriteInfo ( { visible : false } ) ;
365
+ this . props . vm . renderer . draw ( ) ;
365
366
}
366
367
}
367
368
onStopDrag ( mouseX , mouseY ) {
@@ -387,12 +388,9 @@ class Stage extends React.Component {
387
388
}
388
389
this . props . vm . postSpriteInfo ( spriteInfo ) ;
389
390
// Then clear the dragging canvas and stop drag (potentially slow if selecting sprite)
390
- setTimeout ( ( ) => {
391
- this . clearDragCanvas ( ) ;
392
- setTimeout ( ( ) => {
393
- commonStopDragActions ( ) ;
394
- } , 30 ) ;
395
- } , 30 ) ;
391
+ this . clearDragCanvas ( ) ;
392
+ commonStopDragActions ( ) ;
393
+ this . props . vm . renderer . draw ( ) ;
396
394
} else {
397
395
commonStopDragActions ( ) ;
398
396
}
You can’t perform that action at this time.
0 commit comments