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
{{ message }}
Repository navigation
emscripten_set_orientationchange_callback does not work #21448
Tested with the latest main (6105e76) and 3.1.55 Emscripten. Adding an orientation change callback is either unsupported (iOS/Safari) or silently fails (Android/Chrome), but manually running the JS calls does work. Here's a minimal test:
Either test on a tablet on in a browser's dev tools with the device toolbar enabled (e.g. Apple + Shift + M in Chrome). Rotate the device or change the dev tool rotation. Note that emscripten_set_orientationchange_callback() either fails to add or simply does nothing, but the JS screen orientation listener works on iOS, Android and desktop.
This is different from the ASSERTION issue reported in #21447.
Activity
cwoffenden commentedon Feb 28, 2024
A fix was added as part of #21428.