Event order differs for platforms on orientation change
See original GitHub issueRetrieving screen.width
and screen.height
in an change:bounds
callback after rotating the device return different values on both platforms. On Android the updated screen.width
and screen.height
values get returned, while on iOS they are still the ones valid before the rotation.
Issue Analytics
- State:
- Created 9 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Handling Orientation Changes on Android - Medium
When you rotate your device and the screen changes orientation, Android usually destroys your application's existing Activities and Fragments and recreates them ...
Read more >Handle configuration changes - Android Developers
If you want to manually handle orientation changes in your app you must declare the "orientation" , "screenSize" , and "screenLayout" values in ......
Read more >Window: orientationchange event - Web APIs | MDN
The orientationchange event is fired when the orientation of the device has changed.
Read more >Handling orientation changes in React Native - Adrian Hall
I store the orientation in the state object, then add an event listener. Whenever the dimensions change (for example, due to an orientation...
Read more >How do I correctly detect orientation change using Phonegap ...
Update May 2019: window.orientation is a deprecated feature and not supported by most browsers according to MDN. The orientationchange event is associated with ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Can you provide a small snippet to reproduce?
I agree that
change:orientation
should come beforechange:bounds
.