Skip to content

Conversation

filipnavara
Copy link
Contributor

Description of Change

Apple has an extensive documentation on implementing custom gesture recognizers. For discrete gesture recognizers, like the one implemented in TouchBehavior, you are supposed to communicate the state back as Possible / Failure / Recognized. This affects interaction with other gesture recognizers.

Previously the State was never set and left at the default Possible value (initial value and default after Reset). This causes simultaneous gesture recognizers on parent views to fire even if TouchBehavior recognized the gesture.

As a side effect of fixing the state machine, we no longer need to manually prevent simultaneous touches with ShouldReceiveTouch behavior override and we can revert ShouldRecognizeSimultaneously to its default behavior of returning false.

Linked Issues

PR Checklist

Additional information

@dotnet-policy-service dotnet-policy-service bot added stale The author has not responded in over 30 days help wanted This proposal has been approved and is ready to be implemented labels Aug 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted This proposal has been approved and is ready to be implemented stale The author has not responded in over 30 days
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants