Switch to sending end drag event to be handled by gui

This commit is contained in:
DD 2018-02-23 11:57:19 -05:00
parent 51fd97ee54
commit 8355dd662f
3 changed files with 37 additions and 35 deletions

View file

@ -296,6 +296,12 @@ class Blocks {
case 'endDrag':
if (optRuntime) {
optRuntime.emitBlockDragUpdate(false /* areBlocksOverGui */);
// Drag blocks onto another sprite
if (e.isOutside) {
const newBlocks = adapter(e);
optRuntime.emitBlockEndDrag(newBlocks);
}
}
break;
case 'delete':