Skip to content

Commit 0c54380

Browse files
committed
Allowed the orientation checks to still work when using RESIZE scale mode.
1 parent 022d709 commit 0c54380

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/core/ScaleManager.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -713,14 +713,15 @@ Phaser.ScaleManager.prototype = {
713713
else if (this._scaleMode === Phaser.ScaleManager.EXACT_FIT || this._scaleMode === Phaser.ScaleManager.SHOW_ALL)
714714
{
715715
this.refresh();
716-
this.checkOrientationState();
717716

718717
if (this.onResize)
719718
{
720719
this.onResize.call(this.onResizeContext, this.width, this.height);
721720
}
722721
}
723722

723+
this.checkOrientationState();
724+
724725
},
725726

726727
/**

0 commit comments

Comments
 (0)