fix scrollbar going funky on DevTools description

This commit is contained in:
HJfod 2023-03-30 19:20:17 +03:00
parent 585a9de18d
commit 83b0850878

View file

@ -111,11 +111,17 @@ void Scrollbar::draw() {
if (fHeightTop() > 0.0f) {
thumbHeight -= fHeightTop();
if (thumbHeight < 15.f) {
thumbHeight = 15.f;
}
thumbPosY -= fHeightTop();
}
if (fHeightBottom() < 0.f) {
thumbHeight += fHeightBottom();
if (thumbHeight < 15.f) {
thumbHeight = 15.f;
}
thumbPosY -= fHeightBottom();
}