-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added scrollTo #831
added scrollTo #831
Conversation
Merge It ! |
Please merge. 😃 |
Merge it!! |
this.refs.swiper.scrollBy(index - this.state.index) works around this for me btw. |
👍 Can we have this? the above solution works but scrollTo would be very nice. |
@leecade please merge this. ScrollTo is very important compared to ScrollBy |
I don't have write access. sorry. Ask @leecade 💯 |
Shouldn't this also be added to the typescript definition like #931? |
how is this meant to be used? I dont see any scrollTo property in latest nightly version |
Doesn't seems to be working |
Is it a bugfix ?
Is it a new feature ?
Describe what you've done:
scroll to specific slider
How to test it ?
call scrollTo using a button, and swiper reference, using index as parameter (eg, using a toolbar on top)