Update Map.WinUI.cs

This commit is contained in:
ClemensFischer 2025-03-19 20:11:05 +01:00
parent b708b817fd
commit 4d6fee3fe1

View file

@ -70,6 +70,7 @@ namespace MapControl
private void OnPointerPressed(object sender, PointerRoutedEventArgs e) private void OnPointerPressed(object sender, PointerRoutedEventArgs e)
{ {
// Set manipulationEnabled before ManipulationStarted.
// IsLeftButtonPressed: input was triggered by the primary action mode of an input device. // IsLeftButtonPressed: input was triggered by the primary action mode of an input device.
// //
manipulationEnabled = manipulationEnabled =
@ -79,7 +80,7 @@ namespace MapControl
private void OnPointerMoved(object sender, PointerRoutedEventArgs e) 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 && if (!manipulationEnabled.HasValue &&
e.GetCurrentPoint(this).Properties.IsLeftButtonPressed) e.GetCurrentPoint(this).Properties.IsLeftButtonPressed)