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

ScrollToItem(at:) programmatically - Can I control the speed of animation? #16

Open
alessign opened this issue Mar 1, 2018 · 0 comments

Comments

@alessign
Copy link

alessign commented Mar 1, 2018

Hi, I would like use VegaScroll in user-disabled mode and call action on button press to scroll to the next index. It all works fine, only problem is, that the animation is too fast and it doesn't look that great.

I found only one way to control it in viewDidLoad method:
collectionView.decelerationRate = UIScrollViewDecelerationRateNormal

But that doesn't quite do the trick. Is there a way to control the speed of scroll animation directly in VegaScroll class?

Thank you

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

No branches or pull requests

1 participant