iPhone native apps, like the Stocks app, let you easily create a list and then drag and drop list items to order them with a drop placeholder highlight.
We have many apps that use jQuery to allow, mouse based, sort or order features, similar to this.
None of these however work on a touch interface. I’m interested in replacing these implementations with one that supports a touch interface.
Any ideas?
I’m looking for this http://jqueryui.com/demos/sortable/#default , but with mobile / touch interface support.
[UPDATE]: YUI is no longer in development, you should instead check https://shopify.github.io/draggable/ or https://rubaxa.github.io/Sortable/ or http://touchpunch.furf.com/
YUI 3 drag and drop module is fully prepared to work with touch interfaces transparently, you don’t have to write any specific code.
I’ve tried it on Ipad and Android phone (also IE, Firefox, Chrome on Windows).
You can try the example from here:
…as well as the rest of examples referenced in that page.
I’m using it right now on a project, if you make more specific questions I may be able to give further help.
–
You can check my slides with links for a comparison of different JS frameworks, and more YUI examples about this matter here: https://docs.google.com/presentation/d/1YPPomooNx3dP6Vv4JEEXqPmDuA1In3qp9Jz_R7FnRs4/edit
And you can test YUI drag and drop in JSFiddle here:
http://jsfiddle.net/mordraug/eKe3q/5/
HTML
CSS
JavaScript