The orientationchange event

Back to the index.

Test page.

Here are the results of my research into the firing of the orientationchange event.

This event fires when the user changes the orientation of the device, for instance from going from landscape to portrait or vice versa.

But: should the event also fire when the user flips the device completely around; i.e. does a 180 degree orientation change from landscape to landscape?

[an error occurred while processing this directive] [an error occurred while processing this directive]
Orientation change 90 degrees
Yes Yes Yes No Yes Yes No Untestable No No Yes No Untestable Yes No No
Orientation change 180 degrees
Yes No No No No Yes No Untestable No No No Untestable No Yes No No No
  • The Samsung Android 2 may fire two events because it goes from 90 to 0 and then to -90, or vice versa. So it temporarily stops in the middle.

Tested browsers

[an error occurred while processing this directive]