Skip to content

Commit 32acb63

Browse files
authored
Fix: Fixed an issue where panes couldn't be switched via touch (#15493)
1 parent 9ecec6f commit 32acb63

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Files.App/Views/PaneHolderPage.xaml.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,8 +335,12 @@ private void Pane_Loaded(object sender, RoutedEventArgs e)
335335
{
336336
((UIElement)sender).GotFocus += Pane_GotFocus;
337337
((UIElement)sender).RightTapped += Pane_RightTapped;
338+
((UIElement)sender).PointerPressed += Pane_PointerPressed;
338339
}
339340

341+
private void Pane_PointerPressed(object sender, PointerRoutedEventArgs e)
342+
=> (sender as UIElement)?.Focus(FocusState.Pointer);
343+
340344
private void Pane_GotFocus(object sender, RoutedEventArgs e)
341345
{
342346
var isLeftPane = sender == PaneLeft;

0 commit comments

Comments
 (0)