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

Batching calls to useSpring #2670

Merged
merged 6 commits into from
May 16, 2024
Merged

Batching calls to useSpring #2670

merged 6 commits into from
May 16, 2024

Conversation

mattgperry
Copy link
Collaborator

@mattgperry mattgperry commented May 16, 2024

This ensures we don't trigger more than one animation per frame from useSpring.

Fixes #2582

Comment on lines 85 to 88
// frame.update(() => {
x.set(clientX - element.offsetLeft - element.offsetWidth / 2)
// y.set(clientY - element.offsetTop - element.offsetHeight / 2)
// })
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shall we clean this up?

@mattgperry mattgperry added the automerge Land this PR label May 16, 2024
@mergetron mergetron bot merged commit e674e58 into main May 16, 2024
1 check passed
@mergetron mergetron bot deleted the fix/sample-on-stop branch May 16, 2024 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Land this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Animation lag after updating from v10x to 11x
2 participants