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

TouchEffect cancels all gesture recognizers on iOS (at least) #24381

Closed
mmiller-d8 opened this issue Aug 22, 2024 · 2 comments
Closed

TouchEffect cancels all gesture recognizers on iOS (at least) #24381

mmiller-d8 opened this issue Aug 22, 2024 · 2 comments
Labels
area-gestures Gesture types t/bug Something isn't working

Comments

@mmiller-d8
Copy link

mmiller-d8 commented Aug 22, 2024

Description

If you have a TouchEffect on a control, no gesture events fire on the control with the behavior or any child events. I've only tested this on iOS so far.

I was trying to use a TouchEffect because of a bug (#23284) where changing the ZIndex when a pan event starts causes the gesture recognizer to get confused and it loses its mind. I though that I could use a touch effect to detect the touch and change the ZIndex there, but no. It keeps the gesture recognizer from firing at all.

Steps to Reproduce

  1. Add a TouchEffect to a Grid.
  2. Add a TapGestureRecognizer and register a handler for the Tapped event
  3. Notice that the Tapped event doesn't fire
  4. Remove the TouchEvent
  5. Notice that the Tapped event fires

This is true for all gesture recognizers. Not just TapGestureRecognizer

Link to public reproduction project repository

No response

Version with bug

8.0.80 SR8

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

I was not able test on other platforms

Affected platform versions

iOS 17

Did you find any workaround?

Not yet. I'm probably going to have to end up getting the native touch events. If only there was some good documentation on how to do that.

Relevant log output

No response

@mmiller-d8 mmiller-d8 added the t/bug Something isn't working label Aug 22, 2024
Copy link
Contributor

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@mmiller-d8
Copy link
Author

I just realized that this is the community toolkit, not Maui proper. I'll create an issue there.

@samhouts samhouts added the area-gestures Gesture types label Aug 28, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Sep 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-gestures Gesture types t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants