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

Hope to add options argument for scrollTo function created by useVirtualList hook. #2451

Open
xvxlb opened this issue Jan 26, 2024 · 1 comment
Assignees
Labels
feature New feature or request v4

Comments

@xvxlb
Copy link
Contributor

xvxlb commented Jan 26, 2024

For we can scroll smoothly.

Example:

const [, scrollTo] = useVirtualList();

const onScroll = () => scrollTo(1, { behavior: 'smooth' });
@crazylxr
Copy link
Collaborator

这是一个好主意,可以提高用户的体验。后面考虑加上

@crazylxr crazylxr added feature New feature or request v4 labels Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request v4
Projects
None yet
Development

No branches or pull requests

3 participants