react-scroll
react-scroll copied to clipboard
Scrolling not working properly on mobile
I am experiencing two issues:
- Scrolling not working property on mobile. I am testing in chrome using the devTool. When I click on a button to fire the following, if i don't tap long enough, (around 1sec) it won't scrolll up.
animateScroll.scrollToTop({
duration: 1000,
delay: 50,
smooth: 'easeInOutQuint',
});
- React always scrolls to top after page loads up what I wanted to do is to scroll to a particular section on the page. When I step through code using debugger, I can see the page gets scrolled to the specified section, but somehow it scrolls back to top. Not sure what triggered this. any ideas? (I am using react boilerplate)
Still facing this issue in 2020. Would love to get help.
Experiencing this as well. Going to check the docs and see if there's a prop or something else that I missed.
any progress on this?
Currently not. Feel free to make a PR! :)
I have problem #2 as well. My Gatsby website works fine with local builds but when deployed (to Netlify) and run on mobile it always scrolls up to the top. Makes it unusable.