diff --git a/src/Controls/src/Core/Platform/GestureManager/GesturePlatformManager.Windows.cs b/src/Controls/src/Core/Platform/GestureManager/GesturePlatformManager.Windows.cs index 34bc58064405..f905812c66bf 100644 --- a/src/Controls/src/Core/Platform/GestureManager/GesturePlatformManager.Windows.cs +++ b/src/Controls/src/Core/Platform/GestureManager/GesturePlatformManager.Windows.cs @@ -808,7 +808,6 @@ void UpdatingGestureRecognizers() if (hasPointerGesture) { - _subscriptionFlags |= SubscriptionFlags.ContainerPgrPointerEventsSubscribed; SubscribePointerEvents(_container); } @@ -834,9 +833,9 @@ void UpdatingGestureRecognizers() return; } + // Pan, pinch, and swipe gestures need pointer events if not subscribed yet. if (!hasPointerGesture) { - _subscriptionFlags |= SubscriptionFlags.ContainerPgrPointerEventsSubscribed; SubscribePointerEvents(_container); } @@ -850,6 +849,8 @@ void UpdatingGestureRecognizers() void SubscribePointerEvents(FrameworkElement container) { + _subscriptionFlags |= SubscriptionFlags.ContainerPgrPointerEventsSubscribed; + container.PointerEntered += OnPgrPointerEntered; container.PointerExited += OnPgrPointerExited; container.PointerMoved += OnPgrPointerMoved;