Javascript for iPhone / iPad / iPod

Im looking for (if possible) javascript libraries / plugins to provide swipe events.

However, I am not after a simple swipe detection, for example, that provides jqTouch. I want to create a behavior similar to the one that the image viewer has on iPods. For example, you drag left or right to go to the next image. You have to drag the image more than 50% of the way and release, and it will be attached to the next image. If you don’t drag 50% of the image, it just goes back to the original.

Any advice is appreciated. Thanks.

+6
javascript iphone ipad ipod swipe
source share
2 answers

I think you could find something like a carousel component in Sencha Touch (view on iPad / iPhone or Chrome / Safari). This has a behavior in which you want to embed. [I work for Sencha]

+4
source share

Here is a separate solution for your problem:

http://swipejs.com/

A more general solution for javascript swipe events can be found here:

https://github.com/eikes/jquery.swipe-events.js

+2
source share

All Articles