What is a good JavaScript library or jQuery plugin for touch gestures? [closed]
Asked Answered
P

4

14

I don´t need a full fledged framework like Sencha or jQuery mobile, just the ability to detect gestures such as swype or pinch to optimize some parts of my site for touch devices.

I have never worked with touch events so I dont really know where to start. Is there a light framework or jQuery plugin for this?

Pointillism answered 10/1, 2012 at 9:35 Comment(2)
sitepoint.com/jquery-plugin-for-touch-swiping-part-1-of-2Fransiscafransisco
For the sake of completeness: There is a new kid on the block: interactjs.ioHamman
C
14

You can check those out: Hammer.js, which you can run standalone or as a jQuery plugin, QuoJS, which is a microlibrary it should work fine alongside jQuery. If you are planning to use jQuery UI then touchpunch should do the job!

Codel answered 26/8, 2012 at 7:53 Comment(4)
What about pep? goo.gl/Y69w9bLifesaving
Hammer.js is rather buggy. I've seen it fail to work quite a few times (the latest one being, it wouldn't fire swipeleft, swiperight in latest Chrome of Android)Reckless
@Lifesaving "jquery.pep.js" doesn't seem at all related to swipe gestures? It's a "jQuery plugin which turns any DOM element into a draggable object"Natural
If you're using jQuery, try github.com/benmajor/jQuery-Touch-Events It's the best one I've seen so far, with great documentation.Mestas
R
5

TouchSwipe should meet your needs :)

Ravishing answered 4/6, 2012 at 3:41 Comment(6)
or swipejs.com if you just want a sliderRavishing
TouchSwipe looks nice. If only they offered more than just a demo. You know; like, how/where to download it.Disepalous
Darrell Brogdon ? the whole thing is available on github - github.com/mattbryson/TouchSwipe-Jquery-PluginRavishing
They need to link to that on their site then.Disepalous
The link is in the top right corner: "Fork me on GitHub". But that's interesting, it indeed means that another mention should probably be added in the center part of the page ; you can propose it, page is also on github: github.com/mattbryson/TouchSwipe-Jquery-Plugin/blob/gh-pages/… :)Ravishing
Odd. One of my Chrome extensions may be hiding the "Fork me on GitHub" banner.Disepalous
S
2

Since you've tagged it jquery, I'll recommend jQTouch.

Substation answered 10/1, 2012 at 9:37 Comment(0)
G
2

I've written a jQuery Plugin: TouchIt it converts touch events to mouse events. The blog post includes a link to GitHub.

Gridley answered 6/8, 2012 at 20:49 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.