Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable pinch/zoom in Android 2.1 browser on HTC devices

I'm building a mobile site and have the following meta tag set in the header:

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

Unfortunately, this isn't working on HTC devices (HTC Hero, etc) with Android 2.1. Any ideas on how I can disable pinch-to-zoom in this browser? Works fine on the iPhone.

like image 600
8three Avatar asked Aug 11 '10 16:08

8three


People also ask

How do I turn off pinch zoom?

Touch or click the picture of the touchpad. Touch or click the Gestures tab. Touch or click the box next to Pinch Zoom to Enable or Disable the Pinch Zoom function.


1 Answers

This works on the default android and iPhone browsers. Although sadly it doesn't work for HTC's custom browser (as asked).

<meta content='True' name='HandheldFriendly' />
<meta content='width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;' name='viewport' />
<meta name="viewport" content="width=device-width" />
like image 88
Garrows Avatar answered Oct 17 '22 17:10

Garrows