mirror of
https://github.com/wassname/phaser.git
synced 2026-07-09 00:20:17 +08:00
Fixed bug in RequestAnimationFrame where the time wasn't being updated properly.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user