glepur / react-native-swipe-gestures

4-directional swipe gestures for react-native
MIT License
607 stars 162 forks source link

Unable to comprehend the meanbing of "velocityThreshold", "directionalOffsetThreshold" and "gestureIsClickThreshold" in config #44

Open npaulConnvertex opened 5 years ago

npaulConnvertex commented 5 years ago

I was going through React-Native-swipe docs where they have written something like this

velocityThreshold: Number 0.3 Velocity that has to be breached in order for swipe to be triggered (vx and vy peroperties of gestureState)

directionalOffsetThreshold: Number 80 Absolute offset that shouldn't be breached for swipe to be triggered (dy for horizontal swipe, dx for vertical swipe)

For some reason I am unable to comprehend, Like if the number is greater than 0.3 means that the user needs to swipe harder (with greater velocity)

and same goes for directionalOffsetThreshold