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

Posts: 82
Registered: ‎09-26-2012
My Device: Torch 9800
My Carrier: NA

Locking screen while using webworks


I am developing a web application for Blackberry using webworks along with jquery.

I want to lock the screen. When i slide the screen the whole app moves along with it. How can i lock it?




Posts: 29
Registered: ‎09-17-2012
My Device: 9810, 9800, 9700, 9900, 9300
My Carrier: BSNL

Re: Locking screen while using webworks

Can you please describe more about what you want!!!!
because it's seems very less information to find the solution for your app..

Thanks & Regards,

Hit like if the above post is helpful to you.
Please Accept this as Solution if the above post is a solution for you.
Posts: 1,561
Registered: ‎04-12-2010
My Device: BlackBerry Z10
My Carrier: Bell

Re: Locking screen while using webworks

Hello Annuk,


If I'm unsterstanding correctly, you mean that touch events cause your entire screen to pan around, is that right?


If so, generally this occurs if content is overflowing beyond the edges of the screen. A quick way to address this is to add a container <div> as your root element (i.e. in your <body> and set its CSS properties to the dimension of the screen, along with overflow: hidden to prevent any items from extending beyond the container. If all elements are contained within the screen, it should not pan on touch events.

Erik Oros | @WaterlooErik | eoros@blackberry.com | Developer Issue Tracker

If a reply has answered your question, please click Accept as Solution to help other visitors in the future.