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

Manually scroll to specific position/element #49

Open
MikeLacroix opened this issue Jul 13, 2021 · 1 comment
Open

Manually scroll to specific position/element #49

MikeLacroix opened this issue Jul 13, 2021 · 1 comment

Comments

@MikeLacroix
Copy link

Is it possible to manually force scroll to a specific position or element (after some button is clicked for example)?

I tried to dispatch scroll or keypress events, however none of them do the work...

@jariz
Copy link
Collaborator

jariz commented Jul 13, 2021

You can use the normal native scrolling methods like container.scrollTo(...) or element.scrollIntoView(...) because it's all just still native scroll, horizontal just makes it work a bit nicer.

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