Monday, January 26, 2015

jqueryui and mobile: thanks TouchPunch!

I was pretty proud of my implementation of jqueryui sortable lists.  Then I went to try it on my phone and it failed. 

At first I thought it might be a javascript problem, but thinking about it I realized that the problem is that phones don't have a way to drag and drop using your mouse button.

Anyway, TouchPunch maps touch events to mouse events in a way that makes "sortable" work.  I'm pretty happy with the results.

http://touchpunch.furf.com/

No comments:

Post a Comment