mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-07-26 22:20:41 -04:00
Feed in requestAnimationFrame events to VM
Not sure exactly how to use these yet, but it seems helpful to have them in there.
This commit is contained in:
parent
bb68fcab25
commit
660029010d
4 changed files with 26 additions and 17 deletions
src
|
@ -63,6 +63,10 @@ VirtualMachine.prototype.stopAll = function () {
|
|||
this.vmWorker.postMessage({method: 'stopAll'});
|
||||
};
|
||||
|
||||
VirtualMachine.prototype.animationFrame = function () {
|
||||
this.vmWorker.postMessage({method: 'animationFrame'});
|
||||
};
|
||||
|
||||
/**
|
||||
* Export and bind to `window`
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue