mirror of
https://github.com/osukey/osukey.git
synced 2025-05-26 07:57:32 +09:00
Fix incorrect value being clamped
This commit is contained in:
parent
a44296a6db
commit
d2479acbf2
@ -115,7 +115,7 @@ namespace osu.Game.Screens.Play
|
|||||||
{
|
{
|
||||||
base.Update();
|
base.Update();
|
||||||
|
|
||||||
float newX = (float)MathHelper.Clamp(Interpolation.Lerp(handleBase.X, NormalizedValue * UsableWidth, Time.Elapsed / 40), 0, UsableWidth);
|
float newX = (float)Interpolation.Lerp(handleBase.X, NormalizedValue * UsableWidth, MathHelper.Clamp(Time.Elapsed / 40, 0, 1));
|
||||||
|
|
||||||
fill.Width = newX;
|
fill.Width = newX;
|
||||||
handleBase.X = newX;
|
handleBase.X = newX;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user