Skip to content

ScrollView TapGestureRecognizer - taping background doesn't fire Tapped event #28064

Description

@papajames89

Description

When I add a ScrollView to the project with any elements inside, assigning a TapGestureRecognizer to those elements works as expected. However, when assigning it to the ScrollView and clicking on the background, the Tapped event is not triggered

    <ScrollView
        Grid.Row="0"
        HeightRequest="50"
        BackgroundColor="Brown"
        Orientation="Horizontal">
        <HorizontalStackLayout>
            <Label BackgroundColor="Red" WidthRequest="100" HeightRequest="50" Text="ScrollView">
                <Label.GestureRecognizers>
                    <TapGestureRecognizer Tapped="OnCounterClickedAdd" />
                </Label.GestureRecognizers>
            </Label>

            <Label BackgroundColor="Blue" WidthRequest="100" HeightRequest="50" Text="ScrollView">
                <Label.GestureRecognizers>
                    <TapGestureRecognizer Tapped="OnCounterClickedAdd" />
                </Label.GestureRecognizers>
            </Label>
        </HorizontalStackLayout>
        <ScrollView.GestureRecognizers>
            <TapGestureRecognizer Tapped="OnCounterClickedRemove" />
        </ScrollView.GestureRecognizers>
    </ScrollView>

Steps to Reproduce

  1. Create a File > New .NET MAUI App
  2. Add ScrollView with any content
  3. Add TapGestureRecognizer to ScrollView
  4. Try to invoke OnTapped method by clicking ScrollView background

Link to public reproduction project repository

No response

Version with bug

9.0.40 SR4

Is this a regression from previous behavior?

Yes, this used to work in Xamarin.Forms

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

Activity

  1. added
    s/triagedIssue has been reviewed
    s/verifiedVerified / Reproducible Issue ready for Engineering Triage
    migration-compatibilityXamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convert
    on Feb 27, 2025
  2. RoiChen001 commented on Feb 27, 2025

    @RoiChen001

    I can repro this issue at Android platform on the latest 17.14 Preview 1.1(9.0.40 & 9.0.30).
    MauiAppC2.zip

  3. added this to the Backlog milestone on Feb 27, 2025
  4. added a commit that references this issue on Jun 29, 2026
    d8845af
  5. added 2 commits that reference this issue on Jul 3, 2026
    61d7feb
    7baef1e
  6. added 2 commits that reference this issue on Jul 7, 2026
    8a3b953
    7fa7f6c
  7. added 2 commits that reference this issue on Jul 10, 2026
    819ab16
    314297b
  8. added a commit that references this issue on Jul 22, 2026
    fb6ca91
  9. added 2 commits that reference this issue on Jul 28, 2026
    e8133a7
    e03fb5b
  10. added a commit that references this issue on Aug 7, 2026
    fa4e48b
  11. added a commit that references this issue on Aug 10, 2026
  12. locked and limited conversation to collaborators on Sep 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-gesturesGesture typesmigration-compatibilityXamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convertplatform/androids/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions