It happens on Android and ios
Which versions are you using:
scroll to correct position
scroll to wrong position
When I use scrollBy this function, it's a little bit different than I expected. I expect it will jump to the specified location, but it didn't. I used a set of buttons to control the rolling position of the plug-in called swiper , but when I first used, it is normal to jump, but the second time in the beginning, it is called the scrollToIndex out of range: 16 vs 10 mistakes, then a set of buttons of mine also are unable to click , in other words, the bug called scrollBy causes my button click failed, could you tell me how to solve this situation.
-
@ChaseChan I think scrollBy function must receive "steps number" not "location number". so you can go throw swiper slides step by step or two steps and so on.
How do you use scrollBy?
@nirpeled add ref={"mySlide"} and use this.refs.mySlide.scrollBy(1,true);
Thanks @taisaotaokhoc
Any updates on this ?
Most helpful comment
@ChaseChan I think scrollBy function must receive "steps number" not "location number". so you can go throw swiper slides step by step or two steps and so on.