From 0fcef2343a38db4db004fb7cb8c0969de3c45939 Mon Sep 17 00:00:00 2001 From: Gadfly Date: Sat, 11 May 2024 21:59:37 +0800 Subject: [PATCH] fix: add ScrollViewer event handler to disable scroll indicators based on scroll position --- src/Views/Launcher.axaml | 3 ++- src/Views/Launcher.axaml.cs | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/Views/Launcher.axaml b/src/Views/Launcher.axaml index f5166de2..9166f095 100644 --- a/src/Views/Launcher.axaml +++ b/src/Views/Launcher.axaml @@ -96,7 +96,8 @@ VerticalScrollBarVisibility="Disabled" DoubleTapped="MaximizeOrRestoreWindow" PointerPressed="BeginMoveWindow" - PointerWheelChanged="ScrollTabs"> + PointerWheelChanged="ScrollTabs" + ScrollChanged="OnTabsScrollChanged"> 0; + rightScrollIndicator.IsEnabled = scrollViewer.Offset.X < scrollViewer.Extent.Width - scrollViewer.Viewport.Width; + } + } + private void SetupDragAndDrop(object sender, RoutedEventArgs e) { if (sender is Border border)