mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:17:44 +00:00
LibWeb: Fix incorrect Animation active_time in the after phase
This commit is contained in:
parent
16a21a503d
commit
360082544c
1 changed files with 2 additions and 2 deletions
|
@ -240,8 +240,8 @@ Optional<double> AnimationEffect::active_time_using_fill(Bindings::FillMode fill
|
|||
|
||||
// -> If the fill mode is forwards or both,
|
||||
if (fill_mode == Bindings::FillMode::Forwards || fill_mode == Bindings::FillMode::Both) {
|
||||
// Return the result of evaluating max(local time - start delay - active duration, 0).
|
||||
return max(local_time().value() - m_start_delay - active_duration(), 0.0);
|
||||
// Return the result of evaluating max(min(local time - start delay, active duration), 0).
|
||||
return max(min(local_time().value() - m_start_delay, active_duration()), 0.0);
|
||||
}
|
||||
|
||||
// -> Otherwise,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue