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 to trigger multiple times #192

Open
edencorbin opened this issue Apr 3, 2017 · 1 comment
Open

How to trigger multiple times #192

edencorbin opened this issue Apr 3, 2017 · 1 comment

Comments

@edencorbin
Copy link

I'm sure this is user error, the first time I call it works perfect, the second time+ calls scroll.scrollTo with a different number of pixels but nothing happens, I basically do:

import Scroll from 'react-scroll';
var scroll = Scroll.animateScroll;
scroll.scrollTo(Math.random()*1000, {containerId: 'right'}); //math random to demonstrate.

I can console log all the way to the pixel input provided to scrollTo and there are no errors, what might I be missing?

@passi246
Copy link

Running into the same Error.
Until this Bug (#114) is not resolved, try using hopelyns fork instead. It worked for me.

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