mirror of
https://github.com/liabru/matter-js.git
synced 2024-11-23 09:26:51 -05:00
fix bug when using timing.isFixed, closes #44
This commit is contained in:
parent
d249165ea9
commit
0933620b68
1 changed files with 2 additions and 2 deletions
|
@ -42,7 +42,7 @@ var Runner = {};
|
||||||
(function render(time){
|
(function render(time){
|
||||||
var timing = engine.timing,
|
var timing = engine.timing,
|
||||||
delta,
|
delta,
|
||||||
correction;
|
correction = 1;
|
||||||
|
|
||||||
timing.frameRequestId = _requestAnimationFrame(render);
|
timing.frameRequestId = _requestAnimationFrame(render);
|
||||||
|
|
||||||
|
@ -123,4 +123,4 @@ var Runner = {};
|
||||||
_cancelAnimationFrame(engine.timing.frameRequestId);
|
_cancelAnimationFrame(engine.timing.frameRequestId);
|
||||||
};
|
};
|
||||||
|
|
||||||
})();
|
})();
|
||||||
|
|
Loading…
Reference in a new issue