Markus3D
Markus3D

Reputation: 77

Xamarin Forms: Disable stretching in webview while scrolling (IOS)

is it possible to deactivated this stetching animation which you can see when you scroll up or down at the start or the end of an website in a webview?

Here is one image of the problem: enter image description here

Thans for your help!

Upvotes: 0

Views: 633

Answers (1)

Ranga
Ranga

Reputation: 1108

This is the default iOS behavior, you need to write a Custom Renderer for disabling it

protected override void OnElementChanged(VisualElementChangedEventArgs e)
{
    base.OnElementChanged(e);

    ScrollView.Bounces = false;
}

Upvotes: 2

Related Questions