-
Notifications
You must be signed in to change notification settings - Fork 0
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
Game doesn't always resize correctly #1
Comments
Initial testing results (2024-01-14)
|
Returning to resizing shenanigans (2024-09-10)Using mostly default Love.js (pre c9fcd71) game doesn't really resize on mobile except sometimes when you enter/exit fullscreen. On the plus side it's never rendered off-screen or stretched. (Check this) Using this solution: Davidobot/love.js#16 in the Chrome mobile device emulator, until I click on it, the game is always filling the screen, but (CSS) stretching instead of resizing correctly. After I click it doesn't resize at all. And after entering or fullscreen, it works perfectly... If I then add the resizeCanvas function/listener, it causes the game to seemingly never resize (Chrome emulator)... Using Davidobot/love.js#50 (comment) doesn't change behaviour except for when in fullscreen, then it stretches instead of resizing on Chrome emulator. Might retest later if I can fix initial resizing not working. |
_emscripten_set_canvas_element_size - function in love.js that does all the resizing |
This can involve any of the following:
It seems to be mostly an issue on mobile rather than desktop, and mainly on Android browsers - more details below. And the Android issues seem to be mostly reproducible on the Chrome desktop mobile emulator, but not on the Firefox one - also see below.
Possible last-resort ideas to help fix
There's also an issue with touch targets (for any input method) not always being correct, but I think that's dependent on this issue
The text was updated successfully, but these errors were encountered: