Reputation:
I am developing Windows Phone PhoneGap app. Now the app is zoomable. I want the app to be not zoomable. Any help is appreciated. I tried <meta name="viewport" content="user-scalable=no">
and <body style="-ms-touch-action: none;">
, they did not work.
Upvotes: 1
Views: 278
Reputation: 771
Use this code in your css. This solved the problem for me.
* {
zoom:1;
-ms-content-zooming:none;
}
Upvotes: 0
Reputation:
This may help you:
When you package an Enyo (or any HTML app) on WP7, the native WebBrowser control is used as the wrapper for your content. Like other platforms, you have the option of setting your viewport to control whether or not the user can pinch/zoom.
<meta name="viewport" content="user-scalable=no">
Upvotes: 1
Reputation: 5578
Try to add this meta tag in the head
section of the page.
<meta
name="viewport"
content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height" />
Upvotes: 0