Map input event handling

This commit is contained in:
ClemensFischer 2025-06-12 22:10:55 +02:00
parent b605433929
commit 8c05f7d581
3 changed files with 35 additions and 37 deletions

View file

@ -26,8 +26,6 @@ namespace MapControl
ManipulationCompleted += OnManipulationCompleted;
}
private bool? manipulationEnabled;
private void OnPointerWheelChanged(object sender, PointerRoutedEventArgs e)
{
if (e.Pointer.PointerDeviceType == PointerDeviceType.Mouse)
@ -40,6 +38,8 @@ namespace MapControl
}
}
private bool? manipulationEnabled;
private void OnPointerPressed(object sender, PointerRoutedEventArgs e)
{
// Set manipulationEnabled before ManipulationStarted.