-
Notifications
You must be signed in to change notification settings - Fork 132
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
enableScrollSpy wrong behaviour #676
Comments
@Mbensler could you please provide a small representation, if it's possible? |
+1, same here. Interesting, in this codesandbox it works: https://codesandbox.io/s/bold-mopsa-nn8dkm I made a gif to show the behaviour in my app: https://gifyu.com/image/SKp0N |
for me enableScrollSpy={true} goes to 0 when i start scrolling. But it's different, just with enableScrollSpy |
I'm not quite sure, but it can be related to countup library, cause react-countup did nothing about this scroll spy, so could someone try to check it with countup? |
I'm not sure what's wrong since it works fine on Sandbox. Is it possible that since it is a component. Once the page renders. It also activates it? Rather than waiting for the viewpoint to reach it? |
Found a solution to this from someone on StackOverflow. import VisibilitySensor from 'react-visibility-sensor'; /* Install this dependency */
|
When using enableScrollSpy my countup instantly goes to 0 when i start scrolling even just an inch. It does not start moving again when leaving and entering the view.
I have used the provided examples in the README.
Expected behaviour:
The text was updated successfully, but these errors were encountered: