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
New Contributor
Posts: 8
Registered: ‎06-15-2011
My Device: 9800
My Carrier: Vodafone

Swipe Left and Swipe Right Event in Blackberry using javaScript

Hello,

I am developing an application which will show all the records available in Address Book ,

As I am using touch screen simulator i have to show the next / previous record on the swipe left and swipe right event

 

Now the problem is that , Is there any way to capture swipe left and swipe right events in my application using inbuild (already build ) api. Can any one provide me the code for the same.

 

 

Thanks in advance.

Highlighted
Developer
Posts: 817
Registered: ‎11-19-2009
My Device: Z10, Q10, 9900, 9790, PlayBook,
My Carrier: T-Mobile UK, Three, O2, Orange, Sunrise, Swisscom

Re: Swipe Left and Swipe Right Event in Blackberry using javaScript

It's easy to do if you use a mobile framework. You will probably be able to use events like 'swipe'. With webworks you can use the touch events and calculate if the finger has moved in between two events.

http://www.blackberry.com/developers/docs/webworks/api/Element.html

--
Olivier - interfaSys ltd
Developing for BlackBerry 10 devices using the Sencha Touch framework.