Fixed bug on iPhone and iPad rotation