2 ms·
Tangentially, what's a good JS library to implement drag/drop on mobile? I'm thinking of one site in particular that implements prioritizing choices by drag/dr
by ams6110 12y ago
Tangentially, what's a good JS library to implement drag/drop on mobile?
I'm thinking of one site in particular that implements prioritizing choices by drag/dropping them into order of preference. But when you try to use the site on a mobile browser, it just scrolls the page when you try to drag an item.
I'd like to suggest to them how to fix it, rather than just complain.
- jewel 12y agoIf they are using jquery UI, then there is a small fix addon called "touch punch" which repairs it. A similar approach should work for other libraries. You need to handle the "touch" events in addition to "mousedown" and "mouseup".
- huskyr 12y agoCheck out Hammer.JS: http://hammerjs.github.io/ http://hammerjs.github.io/