mirror of https://github.com/odrling/Aegisub
Make shift-scrollwheel scroll the grid a page at a time. Closes #1407.
Originally committed to SVN as r6372.
This commit is contained in:
parent
6d550b4a5d
commit
8c246e1cb8
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue