Forum Xamarin.Forms
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

Scroll ScrollView programatically based on TouchEffect

RedRaRedRa Member ✭✭✭

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);

Answers

Sign In or Register to comment.