Problem with canvas centering
Open
@zekeatchan is already working on this.
Since Jan 22, 2025.
- Dominant language
- JavaScript
- Stars
- 40.3k
- Forks
- 7.2k
- PR merge metrics
- No merged PRs in 30d
Description
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
index.ts whre launch() function is defined
Phaser.Game config
Additional Information
The issue appears as shown in the attached image.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.