From eaf3ff05fadf7dd5ae3897776916f60013c9d46b Mon Sep 17 00:00:00 2001 From: ClemensFischer Date: Fri, 13 Jun 2025 16:17:22 +0200 Subject: [PATCH] Update Map.WinUI.cs --- MapControl/WinUI/Map.WinUI.cs | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/MapControl/WinUI/Map.WinUI.cs b/MapControl/WinUI/Map.WinUI.cs index cce1da85..60c54ea0 100644 --- a/MapControl/WinUI/Map.WinUI.cs +++ b/MapControl/WinUI/Map.WinUI.cs @@ -20,7 +20,6 @@ namespace MapControl | ManipulationModes.TranslateInertia; PointerWheelChanged += OnPointerWheelChanged; - PointerPressed += OnPointerPressed; PointerMoved += OnPointerMoved; ManipulationDelta += OnManipulationDelta; ManipulationCompleted += OnManipulationCompleted; @@ -40,20 +39,8 @@ namespace MapControl private bool? manipulationEnabled; - 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 = - e.GetCurrentPoint(this).Properties.IsLeftButtonPressed && - e.KeyModifiers == VirtualKeyModifiers.None; - } - private void OnPointerMoved(object sender, PointerRoutedEventArgs e) { - // Set manipulationEnabled before ManipulationStarted when no PointerPressed was received. - // if (!manipulationEnabled.HasValue && e.GetCurrentPoint(this).Properties.IsLeftButtonPressed) {