Skip to content

Commit

Permalink
Fix: Fixed issue where double-clicking on column headers would naviga…
Browse files Browse the repository at this point in the history
…te up (#13840)
  • Loading branch information
RieBi authored Nov 13, 2023
1 parent 8bf60db commit 515c476
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Files.App/Views/LayoutModes/DetailsLayoutBrowser.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@
Padding="24,0,0,0"
BorderBrush="{ThemeResource DividerStrokeColorDefaultBrush}"
BorderThickness="0,0,0,1"
DoubleTapped="FileListHeader_DoubleTapped"
PointerPressed="Grid_PointerPressed">

<!-- Header Grid MenuFlyout -->
Expand Down
6 changes: 6 additions & 0 deletions src/Files.App/Views/LayoutModes/DetailsLayoutBrowser.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -903,6 +903,12 @@ private void FileList_LosingFocus(UIElement sender, LosingFocusEventArgs args)
args.TryCancel();
}

private void FileListHeader_DoubleTapped(object sender, DoubleTappedRoutedEventArgs e)
{
// Fixes an issue where double clicking the column header would navigate back as if clicking on empty space
e.Handled = true;
}

private static GitProperties GetEnabledGitProperties(ColumnsViewModel columnsViewModel)
{
var enableStatus = !columnsViewModel.GitStatusColumn.IsHidden && !columnsViewModel.GitStatusColumn.UserCollapsed;
Expand Down

0 comments on commit 515c476

Please sign in to comment.