mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-08-28 22:30:40 -04:00
Pass through block drag event
This commit is contained in:
parent
8e1719b716
commit
fe4b3d3c01
3 changed files with 30 additions and 0 deletions
|
@ -288,6 +288,16 @@ class Blocks {
|
|||
newCoordinate: e.newCoordinate
|
||||
});
|
||||
break;
|
||||
case 'drag':
|
||||
if (optRuntime) {
|
||||
optRuntime.emitBlockDragUpdate(e.isOutside);
|
||||
}
|
||||
break;
|
||||
case 'endDrag':
|
||||
if (optRuntime) {
|
||||
optRuntime.emitBlockDragUpdate(false /* areBlocksOverGui */);
|
||||
}
|
||||
break;
|
||||
case 'delete':
|
||||
// Don't accept delete events for missing blocks,
|
||||
// or shadow blocks being obscured.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue