From 5383a0591f22b9640a570e299a73706eb4a27ffc Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Wed, 10 Apr 2024 11:28:49 +0400 Subject: Use clamped animations where it makes sense --- src/ui/config_error_notification.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/ui') diff --git a/src/ui/config_error_notification.rs b/src/ui/config_error_notification.rs index b9e68e8e..d49ab4f0 100644 --- a/src/ui/config_error_notification.rs +++ b/src/ui/config_error_notification.rs @@ -119,9 +119,7 @@ impl ConfigErrorNotification { } State::Hiding(anim) => { anim.set_current_time(target_presentation_time); - // HACK: prevent bounciness on hiding. This is better done with a clamp property on - // the spring animation. - if anim.is_done() || anim.value() <= 0. { + if anim.is_clamped_done() { self.state = State::Hidden; } } -- cgit