Skip to content

Commit

Permalink
Improve mouse wheel behaviour for search filters
Browse files Browse the repository at this point in the history
Adjusting filters with the mouse wheel will now avoid scrolling the list.
  • Loading branch information
coldino committed Feb 11, 2018
1 parent 5ce5588 commit 8cf6387
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions LarkatorGUI/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit 8cf6387

Please sign in to comment.