Ensure damp is always positive exponent

This commit is contained in:
Dean Herbert 2020-08-01 00:39:04 +09:00
parent bb01ee5be9
commit 180afff805
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ protected override void Update()
}
else
{
fill.Alpha = (float)Interpolation.Damp(fill.Alpha, drawableSpinner.RotationTracker.Tracking ? tracking_alpha : idle_alpha, 0.98f, (float)Clock.ElapsedFrameTime);
fill.Alpha = (float)Interpolation.Damp(fill.Alpha, drawableSpinner.RotationTracker.Tracking ? tracking_alpha : idle_alpha, 0.98f, (float)Math.Abs(Clock.ElapsedFrameTime));
}
const float initial_scale = 0.2f;