Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with canvas centering #6789

Open
dominikhalvonik opened this issue Apr 11, 2024 · 1 comment
Open

Problem with canvas centering #6789

dominikhalvonik opened this issue Apr 11, 2024 · 1 comment

Comments

@dominikhalvonik
Copy link

dominikhalvonik commented Apr 11, 2024

Version

  • Phaser Version: 3.80.1
  • Operating system: iOS 17.1.1, 17.0, 17.2, 17.3, 17.4
  • Browser: WKWebView

Description

Occasionally, but not always, on iOS operating systems the canvas is not centered within the div where it should be. This issue also occurs on a fresh Phaser instance that contains only one scene and one game object, so it is unlikely to be related to our implemented logic. It seems more probable that the problem is linked to the configuration settings. This Phaser project is incorporated into a Vue.js 3 environment.

Test Code

Vue.js 3 component

image
image
image

index.ts whre launch() function is defined

image

Phaser.Game config

image

Additional Information

The issue appears as shown in the attached image.
canvas

@dominikhalvonik
Copy link
Author

dominikhalvonik commented Apr 11, 2024

For some reason the code formating on Github is not working correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant