fix: circular progress no longer skips

This commit is contained in:
Tommy Volk 2024-09-29 22:17:30 -05:00
parent 75548373a7
commit 8028a0ddce

View file

@ -139,8 +139,8 @@ impl Animation {
progress: 0.0,
rotation: rotation.wrapping_add(
BASE_ROTATION_SPEED.wrapping_add(
(f64::from(WRAP_ANGLE / (2.0 * Radians::PI)) * f64::MAX)
as u32,
(f64::from(WRAP_ANGLE / (2.0 * Radians::PI))
* u32::MAX as f64) as u32,
),
),
last: now,