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

How do I scroll programmatically inside <Strollable />? #2

Open
phtmgt opened this issue Aug 24, 2019 · 1 comment
Open

How do I scroll programmatically inside <Strollable />? #2

phtmgt opened this issue Aug 24, 2019 · 1 comment

Comments

@phtmgt
Copy link

phtmgt commented Aug 24, 2019

e.g.,

onClick={(e) => {
    e.preventDefault();
    window.scrollBy(0, 100);
}}
@theKashey
Copy link
Owner

You have to get access to the scrollable node (this one, which you could not access right now (except finding parent node by the className and reading the first child)

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