correct a screen-zoom issue on rotation in iOS - rewritten in CoffeeScript
By @mathias, @cheeaun and @jdalton