mirror of
https://github.com/osukey/osukey.git
synced 2025-05-29 09:27:18 +09:00
Clamp values
This commit is contained in:
parent
9248e6290c
commit
fdf67aaa11
@ -115,7 +115,7 @@ namespace osu.Game.Screens.Play
|
|||||||
{
|
{
|
||||||
base.Update();
|
base.Update();
|
||||||
|
|
||||||
float newX = (float)Interpolation.Lerp(handleBase.X, NormalizedValue * UsableWidth, Time.Elapsed / 40);
|
float newX = (float)MathHelper.Clamp(Interpolation.Lerp(handleBase.X, NormalizedValue * UsableWidth, Time.Elapsed / 40), 0, UsableWidth);
|
||||||
|
|
||||||
fill.Width = newX;
|
fill.Width = newX;
|
||||||
handleBase.X = newX;
|
handleBase.X = newX;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user