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?

agente_secreto
  • 7,959
  • 16
  • 57
  • 83

4 Answers4

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!

user980085
  • 331
  • 5
  • 10
5

TouchSwipe should meet your needs :)

redburn
  • 542
  • 4
  • 24
jobwat
  • 8,527
  • 4
  • 31
  • 30
  • or http://swipejs.com/ if you just want a slider – jobwat Jun 04 '12 at 04:59
  • TouchSwipe looks nice. If only they offered more than just a demo. You know; like, how/where to download it. – Darrell Brogdon Jan 05 '14 at 23:23
  • Darrell Brogdon ? the whole thing is available on github - https://github.com/mattbryson/TouchSwipe-Jquery-Plugin – jobwat Jan 30 '14 at 00:15
  • They need to link to that on their site then. – Darrell Brogdon Jan 30 '14 at 18:33
  • 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: https://github.com/mattbryson/TouchSwipe-Jquery-Plugin/blob/gh-pages/index.html :) – jobwat Jan 30 '14 at 23:59
  • Odd. One of my Chrome extensions may be hiding the "Fork me on GitHub" banner. – Darrell Brogdon Feb 03 '14 at 19:15
2

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

2

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

David Hedlund
  • 128,221
  • 31
  • 203
  • 222