react-scroll icon indicating copy to clipboard operation
react-scroll copied to clipboard

Scrolling not working properly on mobile

Open ccm1st opened this issue 7 years ago • 5 comments

I am experiencing two issues:

  1. 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',
    });
  1. 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)

ccm1st avatar Jun 13 '17 03:06 ccm1st

Still facing this issue in 2020. Would love to get help.

kumarabhirup avatar Jun 26 '20 09:06 kumarabhirup

Experiencing this as well. Going to check the docs and see if there's a prop or something else that I missed.

wjd3 avatar Dec 21 '20 00:12 wjd3

any progress on this?

osamakhalil98 avatar Jan 09 '21 18:01 osamakhalil98

Currently not. Feel free to make a PR! :)

fisshy avatar Jan 09 '21 20:01 fisshy

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.

JamesTheBald avatar Nov 03 '21 02:11 JamesTheBald