mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2025-04-28 21:37:58 +03:00
options_menu: fix info scrolling not resetting if text is too small
This commit is contained in:
parent
b291bdba91
commit
16c35b45c2
1 changed files with 7 additions and 0 deletions
|
@ -1521,6 +1521,13 @@ static void DrawInfoPanel(ImVec2 infoMin, ImVec2 infoMax)
|
||||||
|
|
||||||
scrollOffset = std::clamp(scrollOffset, 0.0f, scrollMax);
|
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));
|
SetVerticalMarqueeFade(clipRectMin, clipRectMax, Scale(24), Lerp(Scale(24), 0.0f, scrollOffset / scrollMax));
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue