Fix a bug with iOS viewports