phaser icon indicating copy to clipboard operation
phaser copied to clipboard

Event orientationchange being fired with wrong orientation on iOS Chrome

Open meetpatel1989 opened this issue 3 years ago • 1 comments

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.

meetpatel1989 avatar Jun 29 '21 05:06 meetpatel1989

@photonstorm can you please check on this one?

meetpatel1989 avatar Jul 05 '21 14:07 meetpatel1989