make FixNestedScrolling diygrid popup conditional check more specific

This commit is contained in:
John Colvin committed 2019-05-06 11:28:53 -05:00
1 parent 47c827caf6
commit eebb214574
1 file changed
+1 -1
@@ -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