diff --git a/libraries/ZWidget/src/widgets/listview/listview.cpp b/libraries/ZWidget/src/widgets/listview/listview.cpp index fe73ebdfad..43212771fe 100644 --- a/libraries/ZWidget/src/widgets/listview/listview.cpp +++ b/libraries/ZWidget/src/widgets/listview/listview.cpp @@ -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())); } }