From 50bac1c38c4b9524bdd95c4796c1d45f9660d83b Mon Sep 17 00:00:00 2001 From: Tommy Volk Date: Wed, 20 Aug 2025 08:02:55 -0500 Subject: [PATCH] fix: circular spinner no longer skips --- harbor-ui/src/components/spinner.rs | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/harbor-ui/src/components/spinner.rs b/harbor-ui/src/components/spinner.rs index 5b3abc24..e4718f89 100644 --- a/harbor-ui/src/components/spinner.rs +++ b/harbor-ui/src/components/spinner.rs @@ -144,16 +144,14 @@ impl Animation { rotation: rotation.wrapping_add(additional_rotation), last: now, }, - Self::Contracting { rotation, .. } => { - Self::Expanding { - start: now, - progress: 0.0, - rotation: rotation.wrapping_add(BASE_ROTATION_SPEED.wrapping_add( - (f64::from(WRAP_ANGLE / (2.0 * Radians::PI)) * f64::MAX) as u32, - )), - last: now, - } - } + Self::Contracting { rotation, .. } => Self::Expanding { + start: now, + progress: 0.0, + rotation: rotation.wrapping_add(BASE_ROTATION_SPEED.wrapping_add( + (f64::from(WRAP_ANGLE / (2.0 * Radians::PI)) * u32::MAX as f64) as u32, + )), + last: now, + }, } }