mirror of
https://github.com/liabru/matter-js.git
synced 2025-03-13 00:28:28 -04:00
Update Runner.js
This commit is contained in:
parent
85efda2369
commit
c3c3da5ab0
1 changed files with 1 additions and 3 deletions
|
@ -36,7 +36,7 @@ var Runner = {};
|
|||
var runner = Engine.runner(engine);
|
||||
(function callback(time){
|
||||
runner(time);
|
||||
_requestAnimationFrame(callback);
|
||||
engine.timing.frameRequestId = _requestAnimationFrame(callback);
|
||||
})();
|
||||
};
|
||||
|
||||
|
@ -52,8 +52,6 @@ var Runner = {};
|
|||
delta,
|
||||
correction = 1;
|
||||
|
||||
timing.frameRequestId = _requestAnimationFrame(render);
|
||||
|
||||
if (!engine.enabled)
|
||||
return;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue