From 4d6fee3fe1750b6ae4ceade0e7415d642c826521 Mon Sep 17 00:00:00 2001 From: ClemensFischer Date: Wed, 19 Mar 2025 20:11:05 +0100 Subject: [PATCH] Update Map.WinUI.cs --- MapControl/WinUI/Map.WinUI.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MapControl/WinUI/Map.WinUI.cs b/MapControl/WinUI/Map.WinUI.cs index 360e1e80..17407a17 100644 --- a/MapControl/WinUI/Map.WinUI.cs +++ b/MapControl/WinUI/Map.WinUI.cs @@ -70,6 +70,7 @@ namespace MapControl private void OnPointerPressed(object sender, PointerRoutedEventArgs e) { + // Set manipulationEnabled before ManipulationStarted. // IsLeftButtonPressed: input was triggered by the primary action mode of an input device. // manipulationEnabled = @@ -79,7 +80,7 @@ namespace MapControl private void OnPointerMoved(object sender, PointerRoutedEventArgs e) { - // Set manipulationEnabled when no PointerPressed was received. + // Set manipulationEnabled before ManipulationStarted when no PointerPressed was received. // if (!manipulationEnabled.HasValue && e.GetCurrentPoint(this).Properties.IsLeftButtonPressed)