Refined viewport haxie to work better on ipad