From 4b93de93f577a08e3d060b611e7ebf6b1ebf2bc2 Mon Sep 17 00:00:00 2001 From: J-D-K Date: Mon, 10 Nov 2025 19:37:42 -0500 Subject: [PATCH] Fix PopMessage --- source/ui/PopMessage.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source/ui/PopMessage.cpp b/source/ui/PopMessage.cpp index c1642b1..a6eb72c 100644 --- a/source/ui/PopMessage.cpp +++ b/source/ui/PopMessage.cpp @@ -43,19 +43,21 @@ void ui::PopMessage::update(double targetY) // Always update the targetY unless the message is dropping. This is so messages collapse properly. if (m_state != State::Dropping) { m_transition.set_target_y(targetY); } + // Always run the update_y routine. + PopMessage::update_y(); + // Update the current state. switch (m_state) { - case State::Rising: PopMessage::update_y(); break; case State::Opening: { PopMessage::update_text_offset(); PopMessage::update_width(); } break; + case State::Displaying: PopMessage::update_display_timer(); break; case State::Closing: PopMessage::update_width(); break; - case State::Dropping: PopMessage::update_y(); break; default: break; } }