Skip to content

Commit

Permalink
Fix: Fixed an issue where panes couldn't be switched via touch (files…
Browse files Browse the repository at this point in the history
  • Loading branch information
XTorLukas authored May 31, 2024
1 parent 9ecec6f commit 32acb63
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Files.App/Views/PaneHolderPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,12 @@ private void Pane_Loaded(object sender, RoutedEventArgs e)
{
((UIElement)sender).GotFocus += Pane_GotFocus;
((UIElement)sender).RightTapped += Pane_RightTapped;
((UIElement)sender).PointerPressed += Pane_PointerPressed;
}

private void Pane_PointerPressed(object sender, PointerRoutedEventArgs e)
=> (sender as UIElement)?.Focus(FocusState.Pointer);

private void Pane_GotFocus(object sender, RoutedEventArgs e)
{
var isLeftPane = sender == PaneLeft;
Expand Down

0 comments on commit 32acb63

Please sign in to comment.