Skip to content

Right Scrollbar not scrolling with the page #800

Discussion options

You must be logged in to vote

I figured it out!!!! With some help from Chat-GPT of course. I've never programmed with JS.😅

The furo.js is to be modified as per the attached file.
furo js script.txt

The CSS style of toc-tree-container is to be modified as follows in a custom css.
.toc-tree-container { padding-bottom: var(--toc-spacing-vertical); max-height: 100vh; overflow: auto; scroll-behavior: smooth; }

The scroll position of the toc-tree-container class ìs controlled rather than the toc-scroll class, thereby keeping the 'On this page' division within the window while scrolling.

Now the right sidebar with the toc entries scrolls with the page and maintains the highlighted entry at 25% from the top of the browser win…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ashdal08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants