0

I'm working on an iOS web app and I have the viewport set to not scalable via...

<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=no;" />

The problem is that when I focus on an input text field, it zooms in and doesn't zoom out:

enter image description here

How can I prevent this?

Full size image: https://i.stack.imgur.com/N50Vg.png

Charlie
  • 11,380
  • 19
  • 83
  • 138

2 Answers2

0

The problem was this tag,

-webkit-overflow-scrolling: touch;

It's been really buggy in iOS5, and after removing it from the div, the zoom problem did not happen again.

Charlie
  • 11,380
  • 19
  • 83
  • 138
0

I think the answer you are looking for is:

    <meta name="viewport" content="width=device-width; intial-scale=1; maximum-scale=1">

This prevents it from scaling.