brainhubeu/react-carousel
Do you want to work on this issue?
You can request for a bounty in order to promote it!
Wrong active dots calculation #172
pierzchalatomasz posted onGitHub
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
- Create a carousel with 5 items
- Pass following props:
<Carousel ... dots slidesPerPage={2} slidesPerScroll={2} >
- Keep changing active slides
- Notice the order of active dots (it's repeatable 1, 3, 5, 2, 4)
Expected behavior Probably active dots should be calculated differently for this kind of situation.
Screenshots
Desktop (please complete the following information):
- OS: [macOS 10.14.6]
- Browser [Chrome]
- Version [79.0.3945.88]