From e816bd2e8ca17af5b515f67cb0e50bf16176d1c9 Mon Sep 17 00:00:00 2001 From: Devin Slothower <93222657+Devin-Slothower@users.noreply.github.com> Date: Sun, 30 Jun 2024 15:42:52 -0400 Subject: [PATCH] Fix Map Scrolling ScrollToHorizontalOffset and ScrollToVerticalOffset occasionally fail to update the ScrollViewer layout when dragging causing the map to randomly freeze in place. --- src/ProtonVPN.App/Map/Views/Map.xaml.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ProtonVPN.App/Map/Views/Map.xaml.cs b/src/ProtonVPN.App/Map/Views/Map.xaml.cs index 7c33a96e6..4946734c5 100644 --- a/src/ProtonVPN.App/Map/Views/Map.xaml.cs +++ b/src/ProtonVPN.App/Map/Views/Map.xaml.cs @@ -244,6 +244,7 @@ private void Drag(object sender, MouseEventArgs e) _lastPoint = position; Scroll(ScrollViewer.HorizontalOffset - x, ScrollViewer.VerticalOffset - y); + ScrollViewer.UpdateLayout(); } private void SetConnectionLinePosition()