News for hackers. Stuff that matters.
Re:Dragscroll – a tiny JS library which enables scrolling vi... by ams6110 on Sunday March 22, 2015 @04:09PM (#9248035)
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.

Re:Dragscroll – a tiny JS library which enables scrolling vi... by jewel on Sunday March 22, 2015 @05:29PM (#9248331)
If 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".

Re:Dragscroll – a tiny JS library which enables scrolling vi... by huskyr on Sunday March 22, 2015 @06:42PM (#9248567)
Check out Hammer.JS: http://hammerjs.github.io/