Splitted the rotation into a 2 step process to gain compatibility with chrome for Android