Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to enable pinch zoom on website for mobile devices?

I am trying to enable pinch zoom on my website. I've tried to enable zooming by setting meta viewport like this but without any success.

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

Any ideas why my site is still not zoomable on ipads and iphones?

like image 538
hjuster Avatar asked Sep 12 '12 16:09

hjuster


People also ask

How do I turn off viewport scaling?

To disable pinch-zoom in HTML, simply add <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> to the <head> section.

What is pinch zoom?

Pinch Zoom is a new feature of the notebook touchpad that allows the option to zoom in or out of a picture by moving two fingers towards or away from each other. This feature is similar to functions on certain cell phones that utilize the Android™ operating system, or Apple® iPhone® mobile digital device.


1 Answers

This may be a bit late seeing that it has been answered almost a year ago... Although I tried your meta tags on my HTML page of my IOS app. The tags didnt really let me zoom out, and barely let me zoom in, and when I would zoom, it would revert back to its original size.

Now I was able to zoom out all the way, and zoom in a "a lot" and it would hold the zooms with these meta tags:

<meta name="viewport" content="width=device-width, initial-scale=.5, maximum-scale=12.0, minimum-scale=.25, user-scalable=yes"/>
like image 194
Ilan Kleiman Avatar answered Oct 04 '22 23:10

Ilan Kleiman