documentarian icon indicating copy to clipboard operation
documentarian copied to clipboard

Scrolling Issue

Open johannesschobel opened this issue 9 years ago • 2 comments

First of all, I am not sure, if it is a bug with this package, another one or if it is intentional.. If you take a look at your demo site make the browser fullscreen and then click at the last entry (e.g., Errors)

Then the page jumps to the bottom of the page, BUT the menu on the left opens the "second last" entry (e.g., Kittens).

I know, this is mainly because of the scroll-plugin, which - I assume - checks the respective position of the viewport. If you make the browser-window quite small in height and click again on Errors the menu highlights the correct entry.

I guess, this is not a bug from this package, but it feels wrong ;)

johannesschobel avatar Aug 10 '16 14:08 johannesschobel

Yeah - it's because of the viewport / scroll position detection. Maybe it would be better to manually mark menu items as active when you click on them, so it doesn't feel so wrong.

But this would mean, that the active section would change immediately after you scroll.

mpociot avatar Aug 10 '16 14:08 mpociot

What about using something like Bootstrap Affix?

johannesschobel avatar Aug 10 '16 14:08 johannesschobel