mirror of
https://github.com/liabru/matter-js.git
synced 2025-03-14 00:38:41 -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);
|
var runner = Engine.runner(engine);
|
||||||
(function callback(time){
|
(function callback(time){
|
||||||
runner(time);
|
runner(time);
|
||||||
_requestAnimationFrame(callback);
|
engine.timing.frameRequestId = _requestAnimationFrame(callback);
|
||||||
})();
|
})();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -52,8 +52,6 @@ var Runner = {};
|
||||||
delta,
|
delta,
|
||||||
correction = 1;
|
correction = 1;
|
||||||
|
|
||||||
timing.frameRequestId = _requestAnimationFrame(render);
|
|
||||||
|
|
||||||
if (!engine.enabled)
|
if (!engine.enabled)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue