mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2025-12-06 07:12:04 +01:00
Update Map.WinUI.cs
This commit is contained in:
parent
b708b817fd
commit
4d6fee3fe1
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue