1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:57:35 +00:00

LibWeb: Fix incorrect comparison in Animation::update_finished_state

This commit is contained in:
Matthew Olsson 2024-02-04 13:56:01 -07:00 committed by Andreas Kling
parent 2e29b0d700
commit 16a21a503d

View file

@ -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;