From 8cf6387b26f2eecebdc5dbe153bb182b2bad6dc9 Mon Sep 17 00:00:00 2001 From: Anthony Purchase Date: Sun, 11 Feb 2018 02:03:30 +0000 Subject: [PATCH] Improve mouse wheel behaviour for search filters Adjusting filters with the mouse wheel will now avoid scrolling the list. --- LarkatorGUI/MainWindow.xaml.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/LarkatorGUI/MainWindow.xaml.cs b/LarkatorGUI/MainWindow.xaml.cs index fa583f3..9bed821 100644 --- a/LarkatorGUI/MainWindow.xaml.cs +++ b/LarkatorGUI/MainWindow.xaml.cs @@ -490,6 +490,8 @@ private void AdjustableInteger_MouseWheel(object sender, MouseWheelEventArgs e) UpdateCurrentSearch(); MarkSearchesChanged(); + + e.Handled = true; } private void AdjustableGender_MouseWheel(object sender, MouseWheelEventArgs e) @@ -510,6 +512,8 @@ private void AdjustableGender_MouseWheel(object sender, MouseWheelEventArgs e) UpdateCurrentSearch(); MarkSearchesChanged(); + + e.Handled = true; } private void Result_MouseEnter(object sender, MouseEventArgs e)