-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Fixes #466. Adds support for header highlighting using intersection o… #580
Conversation
There's an issue that I'm not sure how to solve - The current header is decided based on the proximity of a heading to the top of the viewport. To be precise, if a heading is 100px within the top corner of the viewport it is marked as the current heading. Problem is with this heading at the bottom, it never gets close to 100px of the top of the viewport. |
@ssddanbrown - Do you think we should add a scroll event check, and if the user has reached the bottom of the page, we highlight the last header in the page nav? |
@Abijeet Sorry for the delay in my response. I know its not conventional by maybe, instead of guessing what the user is viewing (By what's near the top of the page), we highlight all sections currently in view? |
Getting the latest changes.
… appearing in Firefox.
@@ -135,7 +135,7 @@ body.flexbox { | |||
width: 30%; | |||
left: 0; | |||
height: 100%; | |||
overflow-y: scroll; | |||
overflow-y: auto; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank again @Abijeet, Now merged. |
…bserver.