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

remove requestAnimationFrame in scrollToIndex #124

Closed
spicy-wolf opened this issue Nov 26, 2023 · 1 comment
Closed

remove requestAnimationFrame in scrollToIndex #124

spicy-wolf opened this issue Nov 26, 2023 · 1 comment
Assignees
Labels
enhancement Be better

Comments

@spicy-wolf
Copy link
Owner

requestAnimationFrame(() => {
requestAnimationFrame(() => {
virtualizer.scrollToIndex(index, options);
});
});

seems like it is not needed anymore

@spicy-wolf spicy-wolf added the enhancement Be better label Nov 26, 2023
@spicy-wolf spicy-wolf self-assigned this Nov 26, 2023
@spicy-wolf
Copy link
Owner Author

spicy-wolf commented Nov 26, 2023

nvm, still necessary TanStack/virtual#598 (comment)

@spicy-wolf spicy-wolf changed the title remove double requestAnimationFrame in scrollToIndex remove requestAnimationFrame in scrollToIndex Nov 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Be better
Projects
None yet
Development

No branches or pull requests

1 participant