Search code examples
jqueryeventsmobiletouch

How to use touch events without importing a whole mobile-driven JavaScript framework?


I'm working on a responsive design on which I'd like to use two specific touch events, tap and swipe. Is it possible to import a single jQuery Mobile slice (i.e. jquery.mobile.events.js) or a piece of any other mobile-driven JavaScript framework, without importing the entire set of assets? I'm currently using jQuery, just so you know.


Solution

  • I just found a solution for my problem: TouchSwipe, a jQuery plugin for touch devices that handles swipe events. Like a boss!