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

Use raf's time for smoother transitions #4014

Merged
merged 2 commits into from
Nov 30, 2019
Merged

Conversation

mrkishi
Copy link
Member

@mrkishi mrkishi commented Nov 29, 2019

requestAnimationFrame's argument is better suited to time animations since browsers can account for the frame's actual rendering time.

There's been a lot of movement in browsers so I haven't kept up with which one's do pass in the time the frame's going to be rendered or not, but the worst they could do is just pass the current time, which would be the same behavior as the current one.

@Rich-Harris
Copy link
Member

nice

@Conduitry Conduitry mentioned this pull request Mar 20, 2020
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.

2 participants