Saturday, November 16, 2013

jQuery Mobile: Touch Events Only

jQuery Mobile touch events are awesome.

In a recent project I did not need ALL of the features that the jQuery Mobile framework had to offer; I only needed the excellent touch events. While jQuery Mobile does not offer a custom feature build that includes only the touch system, it is actually quite easy to create your own build.

Just download the following files and include them in your project; but be sure to delete the define method wrapper (the first and last line of each file), as you do not need them with the complete jQuery build.

  1. jquery.mobile.ns.js
  2. jquery.mobile.vmouse.js
  3. jquery.mobile.support.touch.js
  4. touch.js

...that's it, you can now use only jQuery Mobiles touch events!

Shout it

Enjoy,
Tom

No comments:

Post a Comment

Real Time Web Analytics