Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Contributor
Posts: 17
Registered: ‎03-06-2013
My Device: Playbook
Accepted Solution

Preventing pinch and zoom

[ Edited ]

I am using Phonegap and customized JQuery mobile for BB10 jQueryMobile-BB10-Theme. I am wondering how to prevent the pinching and zooming. And also, if it's possible to turn off the word suggestions when typing. 

 

Thanks.

 

BTW: I have already used the javascript code given there which inserts a meta tag with

user-scalable=no

 

 value. 

Retired
Posts: 245
Registered: ‎09-21-2012
My Device: Q10

Re: Preventing pinch and zoom

You should find everything you need in the follwing post to correctly set the view port and prevent pinch to zoom:

 

http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/How-to-set-up-the-viewport-for-a...

 

@erikjohnzon
erjohnson@blackberry.com
Developer
Posts: 1,229
Registered: ‎03-20-2011
My Device: Playbook, Z10 LE, Dev Alpha B, 2x Dev Alpha C

Re: Preventing pinch and zoom

Filling out the missing bit Auto-I-Really-Wish.... is easy (took me a good while to get some code working recently)

 

Word suggestion turning off requires a non-standard attribute but the BB10 browser and all other good ones support it

 

<input type="text" autocomplete="off" />



Click the like button if you find my posts useful!