mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-01-09 14:32:07 -05:00
Add "stack click" event handler to VM
See: https://github.com/LLK/scratch-blocks/pull/360
This commit is contained in:
parent
2d834de766
commit
cfed4e1bba
1 changed files with 6 additions and 0 deletions
|
@ -55,6 +55,9 @@ function VirtualMachine () {
|
||||||
id: e.blockId
|
id: e.blockId
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
|
case 'stackclick':
|
||||||
|
instance.runtime.toggleStack(e.blockId);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -76,6 +79,9 @@ function VirtualMachine () {
|
||||||
id: e.blockId
|
id: e.blockId
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
|
case 'stackclick':
|
||||||
|
instance.runtime.toggleStack(e.blockId);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue