react-scrollable-anchor icon indicating copy to clipboard operation
react-scrollable-anchor copied to clipboard

Forced Jump to Section when Scrolling?

Open danleecreates opened this issue 7 years ago • 10 comments

This works great for jumping to different sections by menu but I have been experiencing an issue when scrolling manually. I see a forced jump to a section when a small part of a section is within view. Is there any way to turn that off? It almost reminiscent of the forced scrolling you sometimes see which leaves the user feeling out of control. See example here: https://tinyurl.com/y7rswsoy

danleecreates avatar Jun 05 '18 09:06 danleecreates

Hi @gabergg Would appreciate any insight you have on the above issue?

danleecreates avatar Jun 11 '18 11:06 danleecreates

Updated original answer with the following example ... https://tinyurl.com/y7rswsoy

danleecreates avatar Jun 18 '18 08:06 danleecreates

Is there any insight into this? I too, have an issue where browser automatically scrolls to the top of the anchor div, thus hijacking the scrolling action.

vaidotasp avatar Oct 15 '18 18:10 vaidotasp

+1! help!

sami616 avatar Oct 19 '18 10:10 sami616

I am also experiencing this issue. Had anyone been able to fix this?

dsmikeyorke avatar Nov 30 '18 17:11 dsmikeyorke

Afraid not. I ended up using react-anchor-link-smooth-scroll which has been working a treat

sami616 avatar Nov 30 '18 17:11 sami616

I am experiencing this too. Probably not using the library as intended. My goal is to scroll to a section when a link is clicked, this works as intended, but when scrolling manually to the section there's a redirect to the top. Not sure why or how is that happening.

bzhr avatar Dec 07 '18 13:12 bzhr

Same issue here

Gervwyk avatar Dec 18 '18 12:12 Gervwyk

@semi616 react-anchor-link-smooth-scroll is a dream - thanks for posting.

danleecreates avatar Jan 11 '19 12:01 danleecreates

I manage to fix this bug (ugly way) for my needs: yarn add https://github.com/effer89/react-scrollable-anchor.git

effer89 avatar Apr 10 '19 16:04 effer89