- Scroll two rows at a time with the mouse wheel in the options menu.

SVN r2828 (trunk)
This commit is contained in:
Randy Heit 2010-09-19 03:52:18 +00:00
parent 94ce4d5d69
commit 503ae5a9ee

View file

@ -138,17 +138,16 @@ bool DOptionMenu::Responder (event_t *ev)
{ {
if (ev->subtype == EV_GUI_WheelUp) if (ev->subtype == EV_GUI_WheelUp)
{ {
if (mDesc->mScrollPos > 0) int scrollamt = MIN(2, mDesc->mScrollPos);
{ mDesc->mScrollPos -= scrollamt;
mDesc->mScrollPos--;
}
return true; return true;
} }
else if (ev->subtype == EV_GUI_WheelDown) else if (ev->subtype == EV_GUI_WheelDown)
{ {
if (CanScrollDown) if (CanScrollDown)
{ {
mDesc->mScrollPos++; mDesc->mScrollPos += 2;
VisBottom += 2;
VisBottom++; VisBottom++;
} }
return true; return true;