Skip to content

Event orientationchange being fired with wrong orientation on iOS Chrome #5762

@meetpatel1989

Description

@meetpatel1989

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions