phaser
phaser copied to clipboard
Event orientationchange being fired with wrong orientation on iOS Chrome
Version
- Phaser Version: 3.55.2
- Operating system: iOS 14.6 iPhone 8 Plus
- Browser: Chrome
Description
The orientation change event is being fired on the chrome browser but with the wrong orientation. This exmaple works fine in the safari but not on the chrome browser.
this.game.scale.on("orientationchange", ()=>{ alert("orientation changed"); });
Additional Information
- Open this in the ios chrome browser in Portrait mode. (Expected behavior)
- Rotate the device to the landscape but still it will show to landscape message. (Wrong behavior)
- Again rotate to portrait. This time it will not show any message while it should show the message for landscape rotation. (Wrong behavior)
My observation: The event is not being fired for the first time only after that event is fired but with the wrong orientation.
@photonstorm can you please check on this one?