Skip to content
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

Merged
merged 3 commits into from
Jun 26, 2019
Merged

added scrollTo #831

merged 3 commits into from
Jun 26, 2019

Conversation

alattanzio
Copy link
Contributor

Is it a bugfix ?

  • No ?

Is it a new feature ?

  • Yes
  • scrollTo specific slider

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)

@ue
Copy link

ue commented Jul 26, 2018

Merge It !

@danikane
Copy link

Please merge. 😃

@acollazomayer
Copy link

Merge it!!

@danikane
Copy link

this.refs.swiper.scrollBy(index - this.state.index) works around this for me btw.
A scrollTo index would still be better though. :)

@thiswayq
Copy link

thiswayq commented Dec 7, 2018

👍 Can we have this? the above solution works but scrollTo would be very nice.

@ManigandanRaamanathan
Copy link

@leecade please merge this. ScrollTo is very important compared to ScrollBy

@alattanzio
Copy link
Contributor Author

alattanzio commented Mar 11, 2019

I don't have write access. sorry. Ask @leecade 💯

@tobiascornille
Copy link
Contributor

Shouldn't this also be added to the typescript definition like #931?

@edoantonioco
Copy link

how is this meant to be used? I dont see any scrollTo property in latest nightly version

@sintylapse
Copy link

Doesn't seems to be working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.