mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 06:42:08 +00:00
Fix mouse wheel scroll bug
This commit is contained in:
parent
ba274757be
commit
0f9d3b4a66
1 changed files with 1 additions and 1 deletions
|
@ -126,7 +126,7 @@ void ListView::OnMouseWheel(const Point& pos, EInputKey key)
|
|||
}
|
||||
else if (key == IK_MouseWheelDown)
|
||||
{
|
||||
scrollbar->SetPosition(std::max(scrollbar->GetPosition() + 20.0, scrollbar->GetMax()));
|
||||
scrollbar->SetPosition(std::min(scrollbar->GetPosition() + 20.0, scrollbar->GetMax()));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue