mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2025-10-30 07:11:05 +00:00
options_menu: reset auto-scroll timer after manual scroll and retain last stick direction
This commit is contained in:
parent
1687c65be9
commit
72640c8749
1 changed files with 3 additions and 0 deletions
|
|
@ -1484,7 +1484,10 @@ static void DrawInfoPanel(ImVec2 infoMin, ImVec2 infoMax)
|
||||||
}
|
}
|
||||||
else if (isManualScrolling && fabs(vert) <= 0.25f)
|
else if (isManualScrolling && fabs(vert) <= 0.25f)
|
||||||
{
|
{
|
||||||
|
isScrolling = false;
|
||||||
isManualScrolling = false;
|
isManualScrolling = false;
|
||||||
|
scrollTimer = 0.0f;
|
||||||
|
scrollDirection = vert > 0.0f ? 1.0f : -1.0f;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue