Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
npaulConnvertex opened this issue Oct 1, 2019 · 0 comments

Comments

@npaulConnvertex
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant