If you are writing with JQuery UI and need it to work on touch devices, try including…

By | August 22, 2011

Reshared post from +John A Hardy

If you are writing with JQuery UI and need it to work on touch devices, try including this script in your page. It will convert touch events into mouse events and make things like sortable lists work.

The code was originally written by Oleg Slobodskoi https://github.com/kof/labs

but I have revised it so it should work with non-iOS devices. I also fixed some breakage that had crept in from recent releases of JQuery UI ui.mouse object.

If you get to try it out on an Android device please give me some feedback. That goes for any other bugs you find.

https://github.com/jhlagado/Mouse.Touch

jhlagado/Mouse.Touch – GitHub
Mouse.Touch – A bridge between touch events and jquery.ui draggable, sortable etc. mouse interactions.

Leave a Reply

Your email address will not be published.