mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-08-28 22:30:40 -04:00
Switch to sending end drag event to be handled by gui
This commit is contained in:
parent
51fd97ee54
commit
8355dd662f
3 changed files with 37 additions and 35 deletions
|
@ -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':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue