mirror of
https://github.com/photonstorm/phaser
synced 2024-11-21 20:23:19 +00:00
The ScaleManager.orientationChange
event listener will now directly refresh the Scale Manager internals. This fixes an issue where the orientation change event would fire after the window resize event, causing the Scale Manager to incorrectly report the new orientation on Chrome on iOS. Fix #6484
This commit is contained in:
parent
450b0d244f
commit
68e089a380
1 changed files with 2 additions and 0 deletions
|
@ -1511,6 +1511,8 @@ var ScaleManager = new Class({
|
|||
|
||||
_this._checkOrientation = true;
|
||||
_this.dirty = true;
|
||||
|
||||
_this.refresh();
|
||||
};
|
||||
|
||||
listeners.windowResize = function ()
|
||||
|
|
Loading…
Reference in a new issue