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

API to force a scroll? #61

Closed
HeyWrecker opened this issue Mar 10, 2016 · 1 comment
Closed

API to force a scroll? #61

HeyWrecker opened this issue Mar 10, 2016 · 1 comment

Comments

@HeyWrecker
Copy link

Is there a way to force a scroll to top without clicking on ScrollToElement / Link? For example, if I'm on a page with params and navigating between them, currently it keeps me at the page position rather than scrolling me back to the top of the page. I'd like to manually do this if it's possible.

@fisshy
Copy link
Owner

fisshy commented Mar 13, 2016

Yes there Is now. Exposing the scroll api now. Checkout the examples page https://github.com/fisshy/react-scroll/blob/master/examples/basic/app.js

@fisshy fisshy closed this as completed Mar 13, 2016
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