snapToItem does not move the slider to a specific position when list length is more than 15 items.
See original GitHub issueThere is a slider that contains more than 200 images there is a circular slider from which we slide that image slider. so we need to call the snapToItem method to move the carousel in a specific position. but snapToItem
does not move the carousel to a specific position.
if the slider has only 10 or 15 images then it works perfectly but if we have more than 15 images snapToItem method doesn’t work properly.
bug report
snapToItem does not move the slider to a specific position.
Have you followed the required steps before opening a bug report?
Environment
(Write your answer here.)
Expected Behavior
Need to move the slider to a specific position where I want. For example, I have 120 images in the slider then I call the snapToItem(119) then it moves to the slider to that 119 images.
(Write what you thought would happen.)
Actual Behavior
(Write what happened. Add screencasts/screenshots!)
Reproducible Demo
(Paste the link to a Snack example in which the issue can be reproduced. Please follow the guidelines for providing a Minimal, Complete, and Verifiable example.)
Steps to Reproduce
(Write your steps so that anyone can reproduce the issue in the Snack demo you provided.)
Issue Analytics
- State:
- Created a year ago
- Comments:6
Top GitHub Comments
@yorickshan have you provided
getItemLayout
props.fixed, nice work, thank you.