Skip to content

Commit b90ad79

Browse files
committed
Code Quality: Fix closing Omnibar via pointer
1 parent cfa335b commit b90ad79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ private void Pane_PointerPressed(object sender, PointerRoutedEventArgs e)
681681
// 1. Sender is not the currently active pane (user is switching panes), or the sender is the active pane,
682682
// but the user is refocusing the pane (e.g. user taps pane to refocus while the Omnibar flyout is open)
683683
// 2. AND the sender is a valid shell page not using a column-based layout
684-
if ((sender != ActivePane || e.Pointer.PointerDeviceType == PointerDeviceType.Touch) && sender is IShellPage shellPage && shellPage.SlimContentPage is not ColumnsLayoutPage)
684+
if (((IsMultiPaneActive && sender != ActivePane) || e.Pointer.PointerDeviceType == PointerDeviceType.Touch) && sender is IShellPage shellPage && shellPage.SlimContentPage is not ColumnsLayoutPage)
685685
(sender as UIElement)?.Focus(FocusState.Pointer);
686686
}
687687

0 commit comments

Comments
 (0)