-
Notifications
You must be signed in to change notification settings - Fork 73
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
How to get current active snap? #50
Comments
you have this handler on props
|
@nickbyte can you provide a repro of this issue in CodeSandbox? Or did you figure it out? Your problem might be related to you changing the container height which will probably mess with the snap point calculations within the library 🤔 |
I have the same problem. It gives a valid snapoint index on load but after dragging, it always gives -1. |
@Temzasse I found the issue: And just appear when dragging in responsive view |
I am having the same problem, I used the following props but it is giving the actual snap index on load only. Otherwise, it returns -1. |
Thanks for reporting this 🙏🏻 This should be fixed in version 1.6.1 🙂 |
I am trying to adjust the wrapping container height based on which is the active current point, onSnap, returns negative values. So hard to identify which is the active snap
The text was updated successfully, but these errors were encountered: