Merge pull request #2617 from tvolk131/fix_circular_progress_skipping

fix: circular progress no longer skips
This commit is contained in:
Héctor 2024-10-02 15:26:34 +02:00 committed by GitHub
commit e086c19a06
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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,