Skip to content

[Android] WebView's content does not scroll when placed inside a ScrollView #32971

Description

@VimalaThirumalaikumar

Description

WebView does not scroll when placed inside a ScrollView. The parent ScrollView intercepts vertical touch gestures, preventing the WebView from scrolling its internal content.

Issue faced in both NET 9 and 10.

Steps to Reproduce

  1. Create a .NET MAUI page with a ScrollView
  2. Place a WebView inside the ScrollView
  3. Load a webpage with scrollable content in the WebView
  4. Attempt to scroll inside the WebView
<ScrollView>
    <VerticalStackLayout>
        <WebView HeightRequest="400" Source="https://learn.microsoft.com/en-us/dotnet/communitytoolkit/maui/">
        </WebView>
    </VerticalStackLayout>
</ScrollView>

WithScrollView.mp4
WithoutScrollView.mp4

WebViewScroll.zip

Expected Behavior

WebView should scroll its internal content independently, even when nested inside a ScrollView

Actual Behavior

WebView does not scroll; parent ScrollView intercepts touch events

Link to public reproduction project repository

No response

Version with bug

10.0.11

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

No response

Affected platforms

Android

Affected platform versions

No response

Did you find any workaround?

No

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions