I am trying to block pinch-to-zoom feature on android.
Google said to use the meta-tag: but it does not work.
It would be great if there was an event function that was called when the user tried to scale. Also if it were read/writable ... possibilities.
Google said to use the meta-tag: but it does not work.
It would be great if there was an event function that was called when the user tried to scale. Also if it were read/writable ... possibilities.
- 21 Posts
- 0 Reply Likes
Posted 9 years ago
- 54 Posts
- 1 Reply Like
Following meta tag works for me on Android if that helps:
<meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width" />
<meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width" />
- 21 Posts
- 0 Reply Likes
Here is my setup:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd" >
<html>
<head>
<LINK REL=StyleSheet HREF="styles.css" TYPE="text/css" MEDIA=screen>
<script type="text/javascript" charset="utf-8" src="phonegap.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
</head>
<body bgcolor=white>
...
</body>
</html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd" >
<html>
<head>
<LINK REL=StyleSheet HREF="styles.css" TYPE="text/css" MEDIA=screen>
<script type="text/javascript" charset="utf-8" src="phonegap.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
</head>
<body bgcolor=white>
...
</body>
</html>
- 54 Posts
- 1 Reply Like
- 21 Posts
- 0 Reply Likes
Related Categories
-
PhoneGap Build
- 15111 Conversations
- 275 Followers

