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 }}
Repository navigation
[BUG] iOS: Slider unresponsive if parent view has TouchBehavior #2358
sealed class TouchUITapGestureRecognizer : UIGestureRecognizer
{
readonly TouchBehavior behavior;
float? defaultRadius;
float? defaultShadowRadius;
float? defaultShadowOpacity;
CGPoint? startPoint;
bool isCanceled;
public TouchUITapGestureRecognizer(TouchBehavior behavior)
{
this.behavior = behavior;
CancelsTouchesInView = false;
// Workaround
DelaysTouchesEnded = false; // *Fixes* the github issue
DelaysTouchesBegan = false; // *Fixes* similar issues with Slider in own project
Delegate = new TouchUITapGestureRecognizerDelegate();
}
...
So it seems like the UIGestureRecognizer is not allowing for the Up event to pass down to its subsequent view, because it gets stuck in validating if it can consume it - even though we allow it to pass it down using CancelsTouchesInView. Could there internally be happening an error in Xamarin.iOS which causes the Up event to get 'stuck'?
Activity
jurganson commentedon Nov 28, 2024
As a workaround, it seems like setting DelaysTouchesEnded in the general UIGestureRecognizer fixes the issue:
Changes done in this file:
So it seems like the UIGestureRecognizer is not allowing for the Up event to pass down to its subsequent view, because it gets stuck in validating if it can consume it - even though we allow it to pass it down using CancelsTouchesInView. Could there internally be happening an error in Xamarin.iOS which causes the Up event to get 'stuck'?
Add device tests for platform-specific code, run them in CI, and fix …