From eebb214574b4cf208cefc50bd25ef012ab4ec382 Mon Sep 17 00:00:00 2001 From: John Colvin Date: Mon, 6 May 2019 11:28:19 -0500 Subject: [PATCH] make FixNestedScrolling diygrid popup conditional check more specific --- src/client/spark/view/Extensions/ScrollViewerCorrector.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/spark/view/Extensions/ScrollViewerCorrector.cs b/src/client/spark/view/Extensions/ScrollViewerCorrector.cs index 6c82f8d29..6bf98189d 100644 --- a/src/client/spark/view/Extensions/ScrollViewerCorrector.cs +++ b/src/client/spark/view/Extensions/ScrollViewerCorrector.cs @@ -30,7 +30,7 @@ namespace mbts.ui { static void _on_preview_mouse_wheel(object sender, MouseWheelEventArgs e) { if (!e.Handled && sender is ScrollViewer sv && !_reentrancy_list.Contains(e)) { - if (Window.GetWindow(sv) == null) { + if (e.Source is GridViewColumnHeader && Window.GetWindow(sv) == null) { // This is a hack specifically for the DIYGrid filter popup (namely, the DiscreteValues ListBox-based template - it doesn't scroll otherwise)...i really, really hate this bug. // The end of the cycle approaches, so unf there is not time to dig deeper into this and find a cleaner fix. // - John, 05/06/2019