mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-28 15:02:39 +00:00
- Scroll two rows at a time with the mouse wheel in the options menu.
SVN r2828 (trunk)
This commit is contained in:
parent
94ce4d5d69
commit
503ae5a9ee
1 changed files with 4 additions and 5 deletions
|
@ -138,17 +138,16 @@ bool DOptionMenu::Responder (event_t *ev)
|
|||
{
|
||||
if (ev->subtype == EV_GUI_WheelUp)
|
||||
{
|
||||
if (mDesc->mScrollPos > 0)
|
||||
{
|
||||
mDesc->mScrollPos--;
|
||||
}
|
||||
int scrollamt = MIN(2, mDesc->mScrollPos);
|
||||
mDesc->mScrollPos -= scrollamt;
|
||||
return true;
|
||||
}
|
||||
else if (ev->subtype == EV_GUI_WheelDown)
|
||||
{
|
||||
if (CanScrollDown)
|
||||
{
|
||||
mDesc->mScrollPos++;
|
||||
mDesc->mScrollPos += 2;
|
||||
VisBottom += 2;
|
||||
VisBottom++;
|
||||
}
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue