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

RequestAnimationFrame is called with fixed instead of current timestamp #554

Closed
c-wygoda opened this issue Jul 28, 2022 · 1 comment
Closed

Comments

@c-wygoda
Copy link

As stated in https://html.spec.whatwg.org/multipage/imagebitmap-and-animations.html#animation-frames:

To run the animation frame callbacks for a target object target with a timestamp now: [...]
Invoke callback, passing now as the only argument, [...]

I understand that now is the current timestamp at time of execution of the callback and confirmed this in Chrome and Firefox.

c-wygoda pushed a commit to c-wygoda/happy-dom that referenced this issue Jul 28, 2022
capricorn86 added a commit that referenced this issue Oct 6, 2022
…callback-timestamp

#554@patch: Use current timestamp in requestAnimationFrame callback.
@capricorn86
Copy link
Owner

capricorn86 commented Oct 6, 2022

Thanks for contributing @c-wygoda! 🙂

There is a fix available now.

You can read more about the release here:
https://github.com/capricorn86/happy-dom/releases/tag/v7.0.2

@c-wygoda c-wygoda closed this as completed Oct 6, 2022
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

No branches or pull requests

2 participants