Discussion Forums  >  Uncategorized

Replies: 4    Views: 315

Mackimack
Apple Fan
Profile
Posts: 481
Reg: Dec 30, 2010
Sweden
14,310
08/22/11 03:13 AM (14 years ago)

Take away the zoom function in WebView?

Hi David It is possible to remove the zoom function in the webview for a custom html or HTML page?
 
Mackimack
Apple Fan
Profile
Posts: 481
Reg: Dec 30, 2010
Sweden
14,310
like
08/22/11 08:14 AM (14 years ago)
I have found the solution!
 
Parker @ buzztouch
buzztouch Evangelist
Profile
Posts: 1395
Reg: May 09, 2011
Pacific Grove, ...
24,500
like
08/22/11 12:40 PM (14 years ago)
Care to share with the rest of class? ;)
 
Mackimack
Apple Fan
Profile
Posts: 481
Reg: Dec 30, 2010
Sweden
14,310
like
08/22/11 11:36 PM (14 years ago)
Of course can I do that! Add this meta tag into your Cutom HTML or HTML doc. <meta content=width=device-width; initial-scale=1.0; maximum-scale=2.0; user-scalable=no, initial-scale = 1; name=viewport /> Then you go to that screen, ->under Advanced Screen Properties->Document Behavior->Prevent All Scrolling-> YES, Prevent Scrolling If you not use this meta tag, and set YES prevent scrolling. You can still zoom. I use this for at HTML screen. I have make a Html page with Javascript. It is a button and a radom text. Then it's good if it does not zoom if you happen to double click on the button. I hope it help someone.
 
Parker @ buzztouch
buzztouch Evangelist
Profile
Posts: 1395
Reg: May 09, 2011
Pacific Grove, ...
24,500
like
08/23/11 01:24 PM (14 years ago)
Awesome, thanks! I have no doubt someone will find this useful.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.