options_menu: fix info scrolling not resetting if text is too small

This commit is contained in:
Hyper 2025-02-07 10:46:34 +00:00
parent b291bdba91
commit 16c35b45c2

View file

@ -1521,6 +1521,13 @@ static void DrawInfoPanel(ImVec2 infoMin, ImVec2 infoMax)
scrollOffset = std::clamp(scrollOffset, 0.0f, scrollMax);
}
else
{
isScrolling = false;
scrollOffset = 0.0f;
scrollTimer = 0.0f;
scrollDirection = 1.0f;
}
SetVerticalMarqueeFade(clipRectMin, clipRectMax, Scale(24), Lerp(Scale(24), 0.0f, scrollOffset / scrollMax));