mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-01-07 01:00:43 +01:00
Update MapItem.WinUI.cs
This commit is contained in:
parent
b9c74304ee
commit
e99b002615
|
|
@ -31,8 +31,10 @@ namespace MapControl
|
||||||
MapPanel.InitMapElement(this);
|
MapPanel.InitMapElement(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void OnPointerPressed(PointerRoutedEventArgs e)
|
protected override void OnPointerReleased(PointerRoutedEventArgs e)
|
||||||
{
|
{
|
||||||
|
// In contrast to WPF and Avalonia, item selection is done on PointerReleased.
|
||||||
|
//
|
||||||
if (e.KeyModifiers.HasFlag(VirtualKeyModifiers.Shift))
|
if (e.KeyModifiers.HasFlag(VirtualKeyModifiers.Shift))
|
||||||
{
|
{
|
||||||
e.Handled = true;
|
e.Handled = true;
|
||||||
|
|
@ -40,7 +42,7 @@ namespace MapControl
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
base.OnPointerPressed(e);
|
base.OnPointerReleased(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue