Skip to content

Commit

Permalink
fix(pointers): ManipCompleted is not invoked when pointer is stoll by…
Browse files Browse the repository at this point in the history
… SV and pointer is out of the bounds the element
  • Loading branch information
dr1rrb committed May 6, 2021
1 parent c3be582 commit 8c651da
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Uno.UI/UI/Xaml/UIElement.Pointers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -884,11 +884,6 @@ private bool OnPointerCancel(PointerRoutedEventArgs args, BubblingContext ctx =
SetPressed(args, false, muteEvent: true);
SetOver(args, false, muteEvent: true);

if (!isOverOrCaptured)
{
return false;
}

if (_gestures.IsValueCreated)
{
_gestures.Value.CompleteGesture();
Expand All @@ -898,6 +893,11 @@ private bool OnPointerCancel(PointerRoutedEventArgs args, BubblingContext ctx =
}
}

if (!isOverOrCaptured)
{
return false;
}

var handledInManaged = false;
if (args.CanceledByDirectManipulation)
{
Expand Down

0 comments on commit 8c651da

Please sign in to comment.