mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 12:23:21 +08: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();
|
||||
|
||||
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;
|
||||
handleBase.X = newX;
|
||||
|
Loading…
Reference in New Issue
Block a user