Fixed bug in RequestAnimationFrame where the time wasn't being updated properly.

This commit is contained in:
Richard Davey
2013-08-30 02:00:30 +01:00
parent 559d75eba1
commit 1e59bc69fb
2 changed files with 17 additions and 9 deletions
+2 -2
View File
@@ -56,8 +56,8 @@ Phaser.RequestAnimationFrame.prototype = {
{
this._isSetTimeOut = false;
this._onLoop = function () {
return _this.updateRAF();
this._onLoop = function (time) {
return _this.updateRAF(time);
};
window.requestAnimationFrame(this._onLoop);