Open
Description
Safari on iOS 16 exposes the screen.orientation
property now, but from what I've seen, it only returns the correct information after the screen rotation animation has finished. However, the orientationchange
event is invoked as soon as the animation starts, causing an issue with detecting the current orientation, as it always returns the previous orientation instead.
To fix this, I suggest moving the iOS-specific code block
Lines 181 to 186 in af95870
window.orientation
, which continues to work as expected.