fix(misc): satisfy wheel spin lint

This commit is contained in:
tiennm99 committed 2026-07-06 13:23:12 +07:00
1 parent eb4a3c49c4
commit 6d021d1e04
1 file changed
+2 -1
@@ -69,7 +69,8 @@ func (p wheelBetaSpinProfile) progressAt(t float64) float64 {
accelEnd := p.accelEnd
coastEnd := p.coastEnd
if accelEnd <= 0 || coastEnd <= accelEnd || coastEnd >= 1 {
return 1 - math.Pow(1-t, 3)
remaining := 1 - t
return 1 - remaining*remaining*remaining
}
accelArea := accelEnd * 0.5