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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Web and WebWorks Development

Reply
Regular Contributor
annuk
Posts: 78
Registered: ‎09-26-2012
My Carrier: NA

Locking screen while using webworks

Hi,

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?

 

Regards,

Annuk

Please use plain text.
Developer
Nitish_Pheonix
Posts: 29
Registered: ‎09-17-2012
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,
Nitish_Pheonix

Hit like if the above post is helpful to you.
Please Accept this as Solution if the above post is a solution for you.
Please use plain text.
BlackBerry Development Advisor
oros
Posts: 839
Registered: ‎04-12-2010
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.

Please note that I will be unavailable between May 19th and June 4th. Sincere apologies for any delays during this time. I will do my best to follow-up as soon as I am able.

Erik Oros
BlackBerry Development Advisor
@WaterlooErik
Please use plain text.