提交 33a38ea6 编写于 作者: D David

feat(pointers): Fix pointer state not updated properly

上级 027323be
...@@ -166,8 +166,9 @@ namespace Uno.UI.Xaml.Core ...@@ -166,8 +166,9 @@ namespace Uno.UI.Xaml.Core
return; return;
} }
#if __ANDROID__ || __IOS__ // Not needed on WASM as we do have native support of the exit event #if __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) // 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 if (args.Pointer.PointerDeviceType is PointerDeviceType.Touch
&& args.OriginalSource is UIElement src) && args.OriginalSource is UIElement src)
......
...@@ -818,7 +818,7 @@ namespace Windows.UI.Xaml ...@@ -818,7 +818,7 @@ namespace Windows.UI.Xaml
OnPointerDown(ptArgs, BubblingContext.OnManagedBubbling); OnPointerDown(ptArgs, BubblingContext.OnManagedBubbling);
break; break;
case RoutedEventFlag.PointerMoved: case RoutedEventFlag.PointerMoved:
#if __IOS__ || __ANDROID__ #if __IOS__
OnNativePointerMoveWithOverCheck(ptArgs, ptArgs.IsPointCoordinatesOver(this), BubblingContext.OnManagedBubbling); OnNativePointerMoveWithOverCheck(ptArgs, ptArgs.IsPointCoordinatesOver(this), BubblingContext.OnManagedBubbling);
#else #else
OnPointerMove(ptArgs, BubblingContext.OnManagedBubbling); OnPointerMove(ptArgs, BubblingContext.OnManagedBubbling);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册