From 8bf05e71ea87f0cfe97b3c5c5a350374696648e1 Mon Sep 17 00:00:00 2001 From: Gadfly Date: Tue, 21 Jul 2026 17:51:25 +0800 Subject: [PATCH] fix: only start tab drag on left mouse button press Right-clicking a tab was recorded as the drag origin. Since the context menu marks PointerReleased as handled, the release handler never cleared it, so the next pointer move over a tab started an accidental drag and left a stuck grab cursor. Signed-off-by: Gadfly --- src/Views/LauncherTabBar.axaml.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Views/LauncherTabBar.axaml.cs b/src/Views/LauncherTabBar.axaml.cs index 3e2714ad7..83826afce 100644 --- a/src/Views/LauncherTabBar.axaml.cs +++ b/src/Views/LauncherTabBar.axaml.cs @@ -222,11 +222,16 @@ private void OnPointerPressedTab(object sender, PointerPressedEventArgs e) (DataContext as ViewModels.Launcher)?.CloseTab(page); e.Handled = true; } - else + else if (point.Properties.IsLeftButtonPressed) { _pressedTabEvent = e; _startDragTab = false; } + else + { + _pressedTabEvent = null; + _startDragTab = false; + } } }