Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] TapGestureRecognizer not working for Horizontal- and VerticalStacklayout #3989

Closed
LarsBehl opened this issue Jan 7, 2022 · 5 comments
Assignees
Labels
area-xaml XAML, CSS, Triggers, Behaviors s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects

Comments

@LarsBehl
Copy link

LarsBehl commented Jan 7, 2022

Description

When using a TapGestureRecognizer on Horizontal- or VerticalStackLayout, the event handler for the tap never gets called, so the tap/click is not getting recognized. A repro can be found here.

Steps to Reproduce

  1. Create new Maui app
  2. Replace Grid in MainPage.xaml with VerticalStackLayout
  3. Add a Label named CounterLabel to the VerticalStackLayout
  4. Add a HorizontalStackLayout to the VerticalStackLayout
  5. Add a TapGestureRecognizer to the HorizontalStackLayout and set Tapped to OnCounterClicked
  6. Add a Label with some text to the HorizontalStackLayout
  7. Run the app and click the Label/HorizontalStackLayout

Version with bug

Preview 11

Last version that worked well

Unknown/Other

Affected platforms

iOS, macOS

Affected platform versions

iOS 15.2, macOS Monterey 12.1

Did you find any workaround?

No response

Relevant log output

No response

@LarsBehl LarsBehl added the t/bug Something isn't working label Jan 7, 2022
@PaulAndersonS
Copy link

#3989

@jsuarezruiz jsuarezruiz added this to New in Triage via automation Jan 10, 2022
@jsuarezruiz jsuarezruiz added the area-xaml XAML, CSS, Triggers, Behaviors label Jan 10, 2022
@hartez hartez self-assigned this Jan 11, 2022
@kristinx0211
Copy link

@LarsBehl Your repro file has expired.

@LarsBehl
Copy link
Author

@kristinx0211 Thanks for the notification. Repo is now public

@kristinx0211
Copy link

@LarsBehl I tried to repro your demo, but the click event can work, is this your expect?
https://user-images.githubusercontent.com/99457000/156505723-3bb2ec12-079e-44b3-ae0e-957b21f7d821.mov

@kristinx0211 kristinx0211 added the s/verified Verified / Reproducible Issue ready for Engineering Triage label Mar 3, 2022
@LarsBehl
Copy link
Author

LarsBehl commented Mar 3, 2022

@kristinx0211 Nice, seems like this issue is already fixed! Can't try it out myself at the moment, as I had to return the mac to university.

@Redth Redth closed this as completed Mar 22, 2022
Triage automation moved this from New to Done Mar 22, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Apr 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-xaml XAML, CSS, Triggers, Behaviors s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
No open projects
Development

No branches or pull requests

6 participants