luster-io / impulse

Dynamic Physics Interactions for the Mobile Web
http://impulse.luster.io
MIT License
1.59k stars 74 forks source link

Drag with scrollbar #27

Closed dpkpnm closed 10 years ago

dpkpnm commented 10 years ago

I want to use drag for horizontal, and utilize browser vertical scroll bar for the same div.

Is this possible?

Thanks Deepak

xcoderzach commented 10 years ago

I haven't experimented with that, but I don't think it's possible. At least not being able to do both at the same time. The issue is that touchmove events on android are only called so long as you call event.preventDefault() for every touchmove. Prevent default will cause the native vertical scrolling to work.

dpkpnm commented 10 years ago

Thanks for the update.

I was able to implement it using touchswipe.js and impulse. Used touchswipe events instead of drag in impulse.

I implemented content slider with swipe gestures & page scrolling and everything works very smooth on android.

-Deepak

xcoderzach commented 10 years ago

Awesome! Glad to hear you got it working.

On Mon, Sep 29, 2014 at 10:34 PM, dpkpnm notifications@github.com wrote:

Thanks for the update.

I was able to implement it using touchswipe.js and impulse. Used touchswipe events instead of drag in impulse and am happy with the end product.

I implemented content slider with swipe with scroller and everything works very smooth on android.

-Deepak

— Reply to this email directly or view it on GitHub https://github.com/luster-io/impulse/issues/27#issuecomment-57259532.