-
Notifications
You must be signed in to change notification settings - Fork 406
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
[BUG] orientation listener on javascript #2636
Comments
Have you tried to rotate the device multiple times? |
4 or 5 times. How many does it take to make it fail? |
Few times... I'm going to record a video. |
This is the video: https://www.informatica-libera.net/videoLavoro/testJavascriptRotationOnIphoneX.mp4 Tested the above code, built as Javascript, on Chrome on iPhoneX. |
I've managed to reproduce it. So far only occurring in Chrome. Not in Safari. Looking into it further |
For some reason, Chrome on iOS doesn't yet have the updated window/document size inside the window "resize" event, which we use to trigger the canvas resize. I have resolved this issue in my tests by adding a 1ms delay between the "resize" event and when we update the canvas size. This will be part of the next server update (next Friday). |
Thank you! |
This bug is strictly related to #2628 (I think that it's the same), but it's a much simpler to investigate, because the following test case is composed by few lines of code.
In short: the following code works on the native apps and on the Javascript port when run on Android, but it produces weird effects when it's run on iPhone. So, to reproduce the bug, simply build to Javascript the following code and test it on Chrome on iPhone, while trying to rotate the device.
The text was updated successfully, but these errors were encountered: