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…
Add table
Add a link
Reference in a new issue