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
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
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, theorientationchange
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
current-device/src/index.js
Lines 181 to 186 in af95870
window.orientation
, which continues to work as expected.The text was updated successfully, but these errors were encountered: