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: 15
Registered: ‎08-07-2011
My Device: Playbook
My Carrier: None

Stop Application Left/Right dragging

[ Edited ]

hi,

I am a bit stuck. I created a simple app using html, css, javascript, jquerymobile.

But when I test it on the simulator and with the debug token onto the device. I can actually touch and drag the app to the right or left, exposing the grey region that is out of my main page. How do I stop this?

 

I have searched the forums but didn't find any easy solution. I just found these but there's not solution.

http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/Stopping-scrolling-page-dragging...

http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/Forcing-PlayBook-not-to-zoom-on-...

 

thanks

Highlighted
Developer
Posts: 435
Registered: ‎09-20-2011
My Device: Z10 LE, Playbook, DevAlpha C, 9900, 9380
My Carrier: Vodafone

Re: Stop Application Left/Right dragging

Try and check with the tip below

1. Add position:fixed to your body in css.

2.If you are working with any particular mode for landscape you just add

<meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=1024, height=600"/>