react-native-reanimated-carousel
react-native-reanimated-carousel copied to clipboard
when onScrollBegin is being called before calling onScrollEnd
When "onScrollBegin" is being started before calling onScrollEnd against previous onScrollBegin, Current onScrollBegin is ignored.
Hi @michel-adrion, could you provide some example showing this behavior. I've been working on different use cases, scrolling through different speeds and scrolling timings. the way <Carousel /> handles onScrollEnd is just running it once depending which is the latest scrolled element. meanwhile onScrollBegin is called every time you scroll into new indexed element. Under the hood <Carousel /> uses a custom hook called useCarouselController() which runs any function inside onScrollBegin and onScrollEnd directly on the JS thread (maybe some asynchronous based functions could have weird behaviors)
If you can provide a reproduction, I'll reopen this issue.