I can't find the ScrollTo api
Closed this issue · 3 comments
KazysNoobiys commented
This is a great library, a lot of functionality. But it seems to have no ScrollTo method, and that's very weird! Is it possible to add this method?
KazysNoobiys commented
I figured out how to organize scrolling. It is necessary to change the CurrentIndex.
I want to note that this is not an intuitive api. It would be great to add ScrollTo method for more similarity with classic CollectionView.
Also unfortunately there is no scroll animation, it's very sad.
roubachof commented
you can ease your sadness by providing a PR 😅
roubachof commented
just added a scrollTo method:
public bool AnimateScroll { get; set; }
public void ScrollTo(int index, bool animateScroll = true)
{
AnimateScroll = animateScroll;
CurrentIndex = index;
}
I'm not sure scroll animation will work on android though