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

Forced Jump to Section when Scrolling? #44

Open
danleecreates opened this issue Jun 5, 2018 · 10 comments
Open

Forced Jump to Section when Scrolling? #44

danleecreates opened this issue Jun 5, 2018 · 10 comments

Comments

@danleecreates
Copy link

danleecreates commented Jun 5, 2018

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
Copy link
Author

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

@danleecreates
Copy link
Author

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

@vaidotasp
Copy link

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.

@sami616
Copy link

sami616 commented Oct 19, 2018

+1! help!

@dsmikeyorke
Copy link

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

@sami616
Copy link

sami616 commented Nov 30, 2018

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

@bzhr
Copy link

bzhr commented Dec 7, 2018

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.

@Gervwyk
Copy link

Gervwyk commented Dec 18, 2018

Same issue here

@danleecreates
Copy link
Author

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

@effer89
Copy link

effer89 commented Apr 10, 2019

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

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

7 participants