From f02007dd027fe1ca4739b6f9d55cf33cc85b6abb Mon Sep 17 00:00:00 2001 From: matejcik Date: Tue, 10 Dec 2024 15:07:53 +0100 Subject: [PATCH] fix(core/ui): fix a bug causing marquee on model TR to not start --- core/embed/rust/src/ui/model_tr/component/title.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/core/embed/rust/src/ui/model_tr/component/title.rs b/core/embed/rust/src/ui/model_tr/component/title.rs index b8f6f8f21d..675d3efea7 100644 --- a/core/embed/rust/src/ui/model_tr/component/title.rs +++ b/core/embed/rust/src/ui/model_tr/component/title.rs @@ -98,13 +98,11 @@ impl Component for Title { fn event(&mut self, ctx: &mut EventCtx, event: Event) -> Option { if self.needs_marquee { - if !self.marquee.is_animating() { - if matches!(Event::RequestPaint, _event) { - return None; - } + if matches!(event, Event::Attach(_)) { self.marquee.start(ctx, Instant::now()); + } else { + return self.marquee.event(ctx, event); } - return self.marquee.event(ctx, event); } None }