Skip to content

Commit 67e7ecb

Browse files
authored
fix: only start tab drag on left mouse button press (#2554)
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 <gadfly@gadfly.vip>
1 parent acb9526 commit 67e7ecb

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/Views/LauncherTabBar.axaml.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,11 +222,16 @@ private void OnPointerPressedTab(object sender, PointerPressedEventArgs e)
222222
(DataContext as ViewModels.Launcher)?.CloseTab(page);
223223
e.Handled = true;
224224
}
225-
else
225+
else if (point.Properties.IsLeftButtonPressed)
226226
{
227227
_pressedTabEvent = e;
228228
_startDragTab = false;
229229
}
230+
else
231+
{
232+
_pressedTabEvent = null;
233+
_startDragTab = false;
234+
}
230235
}
231236
}
232237

0 commit comments

Comments
 (0)