meliorence / meliorence/react-native-snap-carousel
using onScroll is eating the event
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 10.5k
- Forks
- 2.3k
- PR merge metrics
- No merged PRs in 30d
Description
I'm not sure if you guys are paying attention to this, but I ran across a problem in my code where I set a callback for onScroll. When I do, my custom interpolator code doesn't run. The only way I can get it is to remove these lines.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at src/carousel/Carousel.js around line 265 and inspect how the component handles onScroll alongside the custom interpolator path. Reproduce the reported callback setup, then verify that both the user callback and custom interpolator execute without removing the referenced lines.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react-native
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100