mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:07:45 +00:00
LibWeb: Run play tasks before pause tasks
The logic of play() and pause() assumes this to be the case
This commit is contained in:
parent
090dbac5a3
commit
921f6c1e78
1 changed files with 5 additions and 5 deletions
|
@ -905,15 +905,15 @@ void Animation::notify_timeline_time_did_change()
|
||||||
update_finished_state(DidSeek::No, SynchronouslyNotify::Yes);
|
update_finished_state(DidSeek::No, SynchronouslyNotify::Yes);
|
||||||
|
|
||||||
// Act on the pending play or pause task
|
// Act on the pending play or pause task
|
||||||
if (m_pending_pause_task == TaskState::Scheduled) {
|
|
||||||
m_pending_pause_task = TaskState::None;
|
|
||||||
run_pending_pause_task();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (m_pending_play_task == TaskState::Scheduled) {
|
if (m_pending_play_task == TaskState::Scheduled) {
|
||||||
m_pending_play_task = TaskState::None;
|
m_pending_play_task = TaskState::None;
|
||||||
run_pending_play_task();
|
run_pending_play_task();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (m_pending_pause_task == TaskState::Scheduled) {
|
||||||
|
m_pending_pause_task = TaskState::None;
|
||||||
|
run_pending_pause_task();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Animation::effect_timing_changed(Badge<AnimationEffect>)
|
void Animation::effect_timing_changed(Badge<AnimationEffect>)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue