When users rotate their mobile devices vertically or horizontally, the orientationchange event is triggered.