Skip to content

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

@alessign

Description

@alessign

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions