Disabling double tap zoom on android web browsers,without viewport

Krishna Bhatia picture Krishna Bhatia · Jan 29, 2013 · Viewed 8.7k times · Source

I want to disable the double tab zoom on a div in my webpage on android browser. I tried prevent default on touch start and touchmove,cancelling bubble/propogarion. even tried jquery mobile doubletap event,but it fires after the element is zoomed.

Answer

Izazael picture Izazael · Feb 1, 2013

Add the following meta. This will stop double-tap zoom in the majority of mobile browsers, but will stop it everywhere on your page - not just in your single div. It's all or nothing, I'm afraid.

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