Skip to content

Commit

Permalink
feat(pointers): Fix pointer state not updated properly
Browse files Browse the repository at this point in the history
  • Loading branch information
dr1rrb committed Apr 12, 2023
1 parent 027323b commit 33a38ea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/Uno.UI/UI/Xaml/Internal/RootVisual.cs
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,9 @@ internal void ProcessPointerUp(PointerRoutedEventArgs args, bool isAfterHandledU
return;
}

#if __ANDROID__ || __IOS__ // Not needed on WASM as we do have native support of the exit event
// On Android and iOS we use the RootVisual to raise the UWP only exit event (in managed only)
#if __IOS__ // Not needed on WASM as we do have native support of the exit event
// On iOS we use the RootVisual to raise the UWP only exit event (in managed only)
// Note: This is useless for managed pointers where the Exit is raised properly

if (args.Pointer.PointerDeviceType is PointerDeviceType.Touch
&& args.OriginalSource is UIElement src)
Expand Down
2 changes: 1 addition & 1 deletion src/Uno.UI/UI/Xaml/UIElement.Pointers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -818,7 +818,7 @@ partial void PrepareManagedPointerEventBubbling(RoutedEvent routedEvent, ref Rou
OnPointerDown(ptArgs, BubblingContext.OnManagedBubbling);
break;
case RoutedEventFlag.PointerMoved:
#if __IOS__ || __ANDROID__
#if __IOS__
OnNativePointerMoveWithOverCheck(ptArgs, ptArgs.IsPointCoordinatesOver(this), BubblingContext.OnManagedBubbling);
#else
OnPointerMove(ptArgs, BubblingContext.OnManagedBubbling);
Expand Down

0 comments on commit 33a38ea

Please sign in to comment.