Input event handling in WinUI Map and MapItem

This commit is contained in:
ClemensFischer 2025-03-19 16:06:33 +01:00
parent 86f307359f
commit 58ce17db46
2 changed files with 16 additions and 11 deletions

View file

@ -45,11 +45,6 @@ namespace MapControl
pointerPressedPosition = e.GetCurrentPoint(null).Position;
base.OnPointerPressed(e);
// Unsetting e.Handled enables PointerPressed event handlers
// and PointerPressed handling in class Map.
//
e.Handled = false;
}
protected override void OnPointerReleased(PointerRoutedEventArgs e)
@ -71,9 +66,7 @@ namespace MapControl
}
}
// Unsetting e.Handled enables PointerReleased event handlers.
//
e.Handled = false;
e.Handled = true;
}
protected override void OnApplyTemplate()