You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 1, 2024. It is now read-only.
The TouchUITapGestureRecognizer class defined here does not properly maintain its state machine, which results in UIKit considering the gesture recognizer permanently active. This is likely the root cause of a half-dozen or so reported bugs across Xamarin.Forms and XCT.
The TouchUITapGestureRecognizer inherits UIGestureRecognizer, which makes it a UIKit 'custom' gesture recognizer as documented here. Important excerpt from these docs:
Use incoming events to update the state property of your gesture recognizer. UIKit uses the gesture recognizer states to coordinate interactions with other objects in your interface.
Description
The
TouchUITapGestureRecognizer
class defined here does not properly maintain its state machine, which results in UIKit considering the gesture recognizer permanently active. This is likely the root cause of a half-dozen or so reported bugs across Xamarin.Forms and XCT.The
TouchUITapGestureRecognizer
inheritsUIGestureRecognizer
, which makes it a UIKit 'custom' gesture recognizer as documented here. Important excerpt from these docs:I will open a PR to fix shortly.
Possibly related XCT issues:
Possibly related Xamarin.Forms issues:
Stack Trace
N/A
Link to Reproduction Sample
See @mikepotvin's sample repo here
Steps to Reproduce
ShouldRecognizeSimultaneously
on theTouchUITapGestureRecognizerDelegate
hereExpected Behavior
Breakpoint from step (3) should only be hit during step (6).
Actual Behavior
Breakpoint from step (3) is hit during step (7), but not step (5). This shows UIKit believes the GestureRecognizer is still active (because it is).
Basic Information
Workaround
I can't think of any.
Reproduction imagery
N/A
The text was updated successfully, but these errors were encountered: