mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-06-26 06:10:26 -04:00
Include the origin blockId of the top block being dragged.
This is required by the GUI in order to take a snapshot of the blocks for the backpack. Only the ID is needed, the rest can be done by the GUI.
This commit is contained in:
parent
5593c9ab3e
commit
596d0c4f5f
3 changed files with 6 additions and 5 deletions
src/engine
|
@ -340,7 +340,7 @@ class Blocks {
|
|||
// Drag blocks onto another sprite
|
||||
if (e.isOutside) {
|
||||
const newBlocks = adapter(e);
|
||||
optRuntime.emitBlockEndDrag(newBlocks);
|
||||
optRuntime.emitBlockEndDrag(newBlocks, e.blockId);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue