4 ms·
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/
by lbotos 12y ago
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?
- chrisBob 12y agoThis 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?
- lbotos 12y agoIt could. So you are saying two fingers for scroll then, yes? I'll try that.
- chrisBob 12y agoIt 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).
- michaelmior 12y agoThe best spot to ask is probably Stack Overflow.