-
-
Notifications
You must be signed in to change notification settings - Fork 333
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
onScrollBegin triggers on single tap but onScrollEnd does not #244
Comments
Thanks for your detailed reproduction. I'll check it ASAP |
Same issue here. :( |
I've managed to reproduce the same behavior using
|
I'm experiencing this issue as well, for context see SO, where the onScrollBegin and onScrollEnd are used to prevent Pressable child components from being triggered. The onScrollBegin gets triggered at a single tap (expected gesture for Pressing) instead of at actually scrolling (swiping gesture) the carousel. |
This is the exact issue I'm having (even came from the same SO question). Did you end up finding a solution? |
@davidwagn not with this library, I ended up implementing something myself that got the job done. |
Same issue :( Any solutions? |
I'm not sure if this is entirely related, maybe I've missed the point of this thread. My issue was with being able to detect when a user taps a child of the carousel vs swiping through the carousel itself... I wanted to at least put this here to help anyone that needs a solution in the mean time even if it's not ideal... I ended up having to use state to track when a child item is pressed and checked the change in x movement on the
|
I'm experiencing the same/similar issue. I'm not using Here's my carousel. The presence of
|
|
Hey there, thanks for the nice library ^^
I think the behaviour for
onScrollBegin
andonScrollEnd
should be the same once a user do a single tap on the carousel. Currently, the first one gets executed while the latter is not.To Reproduce
Steps to reproduce the behavior:
onScrollBegin={() => console.log('start')} onScrollEnd={() => console.log('end')}
Expected behavior
Either both callbacks should be executed, OR neither of the callbacks should not be executed
Versions (please complete the following information):
Smartphone (please complete the following information):
Haven't tested on other devices, my blind guess is it will work the same across all the devices but I may be terribly wrong :)
Not sure if this is considered a bug but in our case it is because we use the both callbacks to toggle absolutely positioned elements on the screen, outside the Carousel. Any suggestions for work-arounds are welcomed ^^
The text was updated successfully, but these errors were encountered: