News for hackers. Stuff that matters.
Re:Ask HN: Current best practice for drag-and-drop? by lbotos on Tuesday August 19, 2014 @12:43PM (#8198324)
Oh! This might be the best spot to ask. I'm trying to build a web app (ipad kiosk) that has drag and drop and scrolling. The code works perfectly on desktop w/ trackpad because scroll and click are two different actions. Mobile it looks like I have to re-write the scrolling logic because there are only touch events exposed? Is there another way?

I'm currently trying JQUI with touchpunch and have considered hammer.js. Anyone have experience with scrolling and dnd on mobile?

Re:Ask HN: Current best practice for drag-and-drop? by chrisBob on Tuesday August 19, 2014 @12:53PM (#8198386)
This is trivial in a native iOS app: you just look for two touches and call that scrolling. Does the framework you are working with expose all of the touch events?
Re:Ask HN: Current best practice for drag-and-drop? by lbotos on Tuesday August 19, 2014 @02:03PM (#8198817)
It could. So you are saying two fingers for scroll then, yes? I'll try that.
Re:Ask HN: Current best practice for drag-and-drop? by chrisBob on Wednesday August 20, 2014 @11:08AM (#8202617)
It is actually my trackpad not the iPad that uses two finger scroll. I assumed they were the same, and I guess I don't really notice how I scroll on the iPad. I am sure a two-finger scroll will work, but it is not the native recommendation like I though.

The native iOS answer is actually if the finger is static for a certain time interval then it is a click, but if it begins moving immediately then it is a scroll (swipe).

Re:Ask HN: Current best practice for drag-and-drop? by michaelmior on Tuesday August 19, 2014 @01:07PM (#8198475)
The best spot to ask is probably Stack Overflow.