Text tab toggles the drawer; click-away collapses it

This commit is contained in:
2026-08-24 14:49:15 -07:00
parent e6baa55867
commit d9e352f996
5 changed files with 16 additions and 8 deletions
+3
View File
@@ -313,6 +313,9 @@ public partial class MainWindow : Window
private void Window_PreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e)
{
if (e.OriginalSource is not DependencyObject original) return;
var form = _viewModel.BroadcastForm;
if (form.IsDrawerOpen && !IsDescendantOf(original, TextPullOutHost))
form.CloseDrawerCommand.Execute(null);
if (IsDescendantOf(original, PreviewGrid)) return;
if (IsDescendantOf(original, SourceList)) return;
if (IsDescendantOf(original, ElementsScrollViewer)) return;