Skip to content

Commit

Permalink
Fix: Fixed an issue which caused unexpected scrolling in the Columns …
Browse files Browse the repository at this point in the history
…Layout (#16638)
  • Loading branch information
gave92 authored Dec 22, 2024
1 parent 8d451d5 commit 71da435
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Files.App/Views/ShellPanesPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,8 @@ private void Pane_ContentChanged(object? sender, TabBarItemParameter e)

private void Pane_PointerPressed(object sender, PointerRoutedEventArgs e)
{
(sender as UIElement)?.Focus(FocusState.Pointer);
if (sender != ActivePane && sender is IShellPage shellPage && shellPage.SlimContentPage is not ColumnsLayoutPage)
(sender as UIElement)?.Focus(FocusState.Pointer);
}

private void Pane_GotFocus(object sender, RoutedEventArgs e)
Expand Down

0 comments on commit 71da435

Please sign in to comment.