You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hajimehoshi
changed the title
There are some cases where the screen resizes without the resize event being fired in mobile browsers
a resize event might not be fired on iOS Chrome
Sep 2, 2024
Ebitengine Version
latest
Operating System
Go Version (
go version
)go1.22.6
What steps will reproduce the problem?
Open a wasm binary in this page https://a28924d7.go-wasm-player.pages.dev/
I reproduced only on iOS Chrome.
What is the expected result?
Rendered in the correct aspect ratio
What happens instead?
Shrink a little vertically from the correct aspect ratio.
Anything else you feel useful to add?
There seems to be some cases where the screen resizes without the resize event being fired in mobile browsers.
I fixed this issue with
ResizeObserver
that captures all resizings. See eihigh/go-wasm-player@320e6e4The text was updated successfully, but these errors were encountered: