Initial fix for device rotation when presenting a modal in landscape

The rotation could be a bit laggy and also doesn't the direction of the device rotation yet (i.e. clockwise or counter-clockwise).