From 16a21a503d0637b34ccbb477351aa0c5c2a5ace7 Mon Sep 17 00:00:00 2001 From: Matthew Olsson Date: Sun, 4 Feb 2024 13:56:01 -0700 Subject: [PATCH] LibWeb: Fix incorrect comparison in Animation::update_finished_state --- Userland/Libraries/LibWeb/Animations/Animation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/Animations/Animation.cpp b/Userland/Libraries/LibWeb/Animations/Animation.cpp index f4d45e819b..0d47a72b2f 100644 --- a/Userland/Libraries/LibWeb/Animations/Animation.cpp +++ b/Userland/Libraries/LibWeb/Animations/Animation.cpp @@ -465,7 +465,7 @@ void Animation::update_finished_state(DidSeek did_seek, SynchronouslyNotify sync // -> If playback rate > 0 and unconstrained current time is greater than or equal to associated effect end, auto associated_effect_end = this->associated_effect_end(); - if (m_playback_rate > 0.0 && unconstrained_current_time.value() > associated_effect_end) { + if (m_playback_rate > 0.0 && unconstrained_current_time.value() >= associated_effect_end) { // If did seek is true, let the hold time be the value of unconstrained current time. if (did_seek == DidSeek::Yes) { m_hold_time = unconstrained_current_time;