Merge branch 'develop' into apple-banana

This commit is contained in:
apple502j authored and GitHub committed 2020-06-23 14:42:14 +09:00
commit eb7a44991f
32 files changed
+6883 -1479

No files matched your search

+1 -1
View File
@@ -338,7 +338,7 @@ class Blocks extends React.Component {
const stageCostumes = stage.getCostumes();
const targetCostumes = target.getCostumes();
const targetSounds = target.getSounds();
const dynamicBlocksXML = this.props.vm.runtime.getBlocksXML();
const dynamicBlocksXML = this.props.vm.runtime.getBlocksXML(target);
return makeToolboxXML(false, target.isStage, target.id, dynamicBlocksXML,
targetCostumes[targetCostumes.length - 1].name,
stageCostumes[stageCostumes.length - 1].name,
+4 -6
View File
@@ -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();
}