mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-25 02:38:59 +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
Notes:
sideshowbarker
2024-07-17 06:51:48 +09:00
Author: https://github.com/mattco98
Commit: 921f6c1e78
Pull-request: https://github.com/SerenityOS/serenity/pull/23344
Reviewed-by: https://github.com/AtkinsSJ ✅
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);
|
||||
|
||||
// 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) {
|
||||
m_pending_play_task = TaskState::None;
|
||||
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>)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue