Fix rotation so it works in iPad simulator
Make sure rotation is done before next one begins

Thanks to @hiltonc.
Merge pull request #305 from phatmann/fix-ipad-sim

Fix rotation so it works in iPad simulator