Skip to content

Commit

Permalink
The ScaleManager.orientationChange event listener will now directly…
Browse files Browse the repository at this point in the history
… 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
  • Loading branch information
photonstorm committed Feb 20, 2024
1 parent 450b0d2 commit 68e089a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/scale/ScaleManager.js
Expand Up @@ -1511,6 +1511,8 @@ var ScaleManager = new Class({

_this._checkOrientation = true;
_this.dirty = true;

_this.refresh();
};

listeners.windowResize = function ()
Expand Down

0 comments on commit 68e089a

Please sign in to comment.