Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LibWeb: Stop spamming animation events on the wrong event target #24418

Merged
merged 1 commit into from
May 23, 2024

Conversation

awesomekling
Copy link
Collaborator

This patch fixes two issues:

  • Animation events that should go to the target element now do (some were previously being dispatched on the animation itself.)
  • We update the "previous phase" and "previous iteration" fields of animation effects, so that we can actually detect phase changes. This means we stop thinking animations always just started, something that caused each animation to send 60 animationstart events every second (to the wrong target!)

This patch fixes two issues:

- Animation events that should go to the target element now do
  (some were previously being dispatched on the animation itself.)
- We update the "previous phase" and "previous iteration" fields of
  animation effects, so that we can actually detect phase changes.
  This means we stop thinking animations always just started,
  something that caused each animation to send 60 animationstart
  events every second (to the wrong target!)
@github-actions github-actions bot added the 👀 pr-needs-review PR needs review from a maintainer or community member label May 23, 2024
@awesomekling awesomekling merged commit f4636a0 into SerenityOS:master May 23, 2024
11 checks passed
@awesomekling awesomekling deleted the animation-event-spam branch May 23, 2024 10:10
@github-actions github-actions bot removed the 👀 pr-needs-review PR needs review from a maintainer or community member label May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant