Femil Shajin
Femil Shajin

Reputation: 1808

How to start scroll from current position while using ScrollToAsync function in Xamarin.Forms

I am using a horizontal scrollview with series of images.When I use ScrollToAsync function scroll starts from start of the scrollview (Horizontal orientation) and then scrolls to desired element. What should I do to make the scrollview scroll from the current position instead of start position.

scroll.ScrollToAsync(stackLayout.Children[Index],ScrollToPosition.Start,true);

Note: This happens only when ScrollOrientation is Horizontal

Thanks in advance,

Upvotes: 1

Views: 1694

Answers (1)

Rui Marinho
Rui Marinho

Reputation: 1712

What version of forms are you using, this bug seems to fixed in 1.5.1-pre1

https://bugzilla.xamarin.com/show_bug.cgi?id=28965

Upvotes: 1

Related Questions