Reputation: 41
How to disable this link zoom tool in android chrome from html/js/css code.
<ul id="dropdown_address_block">
<li> <a href="map_all">Все мастерские на карте</a> </li>
<li><a href="vo17line">В.О. 17-я линия, 66 (24 часа)</a> </li>
...
</ul>
Upvotes: 2
Views: 1407
Reputation: 21
You have to add this meta tag:
<meta name="viewport" content="user-scalable=0, width=<your_width>, minimum-scale=1.0"></meta>
into the <head>
section of your page.
You'll have to change according to your layout: if your page should be rendered according to a certain layout/document dimension, you'll have to declare the explicit layout width (ie: width=1024).
If your layout should adapt to the device screen resolution, you'll have to set:
width=device-width
.
Also is important to stress that the accepted values for the user-scalable
part are [0,1] for Android (from api level 16, if I'm not wrong) and [yes, no] for iOS.
Upvotes: 2
Reputation: 16597
There are a couple of things that you can do:
At a high level I tried to explain what Chrome does here when determining if the click should be handled or if the magnifier should be shown: http://mobile-ux.appspot.com/#31 but can be summarised as:
Implementation
Upvotes: 2