Make shift-scrollwheel scroll the grid a page at a time. Closes #1407.

Originally committed to SVN as r6372.
This commit is contained in:
Thomas Goyne 2012-01-26 22:46:09 +00:00
parent 6d550b4a5d
commit 8c246e1cb8

View file

@ -781,8 +781,8 @@ void BaseGrid::OnMouseEvent(wxMouseEvent &event) {
// Mouse wheel
if (event.GetWheelRotation() != 0) {
if (ForwardMouseWheelEvent(this, event)) {
int step = 3 * event.GetWheelRotation() / event.GetWheelDelta();
ScrollTo(yPos - step);
int step = shift ? h / lineHeight - 2 : 3;
ScrollTo(yPos - step * event.GetWheelRotation() / event.GetWheelDelta());
}
return;
}