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

New Contributor
Posts: 3
Registered: ‎04-27-2011
My Device: Any
My Carrier: Maybe

Navigating or scrolling, and zooming

Hi, I have have a canvas animition running. But I want that, when the canvas has focus, I could scroll using trakpad/trackball. The same, I want to zoom in/out using trackpad/trackball + Alt key when press.

I guess that setting focusable to true in the config file and x-blackberry-focusable="true" propertie of htmlElement can save me of coding the logic of the scrolling?

In the same way, what to do for zooming after setting in html:<meta user-scale=yes initial-scale=1.0/>?

I am using HTML5 and JavaScript.