diff options
Diffstat (limited to 'src/ui')
| -rw-r--r-- | src/ui/config_error_notification.rs | 4 |
1 files changed, 1 insertions, 3 deletions
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; } } |
