Xamarin.Forms ScrollView scroll programatically based on TouchEffect

Viewed 151

I tries to programmatically scroll ScrollView based on TouchEffect, but when I do that it scrolls not properly, it scrolls instead of up it scrolls down and instead of down - up ...

Also from some point it stop scrolling ...

Here is code that I use to scroll programmatically:

            TouchEffect touchEffect = new TouchEffect();
            touchEffect.TouchAction += async (sender, args) =>
            {
                await Scroller.ScrollToAsync(args.Location.X, args.Location.Y, true);
            };
            Scroller.Effects.Add(touchEffect);
0 Answers
Related