marekrozmus / react-swipeable-list

Swipeable list component for React supporting several behaviours (e.g. iOS)
https://marekrozmus.github.io/react-swipeable-list/
MIT License
114 stars 20 forks source link

Is it possible to track the swipe direction? #24

Closed blasdfaa closed 2 years ago

blasdfaa commented 2 years ago

Is it possible to implement it? This would look good in onSwiperProgress

Eg: (progress: number, direction: string) => void

marcussousax commented 2 years ago

Hi, I've found this package today and I'm still testing things, reading issues etc... It doesn't seem the best idea, but taking a look at the DOM, maybe you can observe the translate property (inline style). I didn't look the Forks yet, maybe someone have implemented your sugestion..

marekrozmus commented 2 years ago

Hi guys :) I will release new version today or at latest tomorrow with that functionality implemented :) @v-zdorovcev - thanks for the proposal.

marekrozmus commented 2 years ago

@v-zdorovcev New version 1.6.0 published - please check changes here: https://github.com/marekrozmus/react-swipeable-list/pull/25 Let me know if this is OK :)

VityaSchel commented 1 year ago

Callback does not change dragDirection variable when user reverses direction of swiping