Skip to content

Commit

Permalink
Merge pull request #2617 from tvolk131/fix_circular_progress_skipping
Browse files Browse the repository at this point in the history
fix: circular progress no longer skips
  • Loading branch information
hecrj authored Oct 2, 2024
2 parents 7554837 + 8028a0d commit e086c19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/loading_spinners/src/circular.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit e086c19

Please sign in to comment.