-
-
Notifications
You must be signed in to change notification settings - Fork 579
Open
Labels
bug-majorBugs that are affecting production users.Bugs that are affecting production users.
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
| if ( | |
| device.ios() && | |
| Object.prototype.hasOwnProperty.call(window, 'orientation') | |
| ) { | |
| return Math.abs(window.orientation) === 90 | |
| } |
window.orientation, which continues to work as expected.subfighter3
Metadata
Metadata
Assignees
Labels
bug-majorBugs that are affecting production users.Bugs that are affecting production users.