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

Scroll bar pulled to the bottom directory display problem like picture #1699

Closed
wudidehuangtiandi opened this issue Dec 29, 2021 · 4 comments

Comments

@wudidehuangtiandi
Copy link

image

@wudidehuangtiandi
Copy link
Author

It seems unreasonable to switch directories only when the title content occupies a full page

@trusktr
Copy link
Member

trusktr commented Dec 29, 2021

This is a problem common in automatic navigation link highlighters, especially when the last content is smaller than the view height.

How do you propose to solve it?

@wudidehuangtiandi
Copy link
Author

i don,t know baby 。Think about it. It's true。Let me know when there's a better plan

@trusktr
Copy link
Member

trusktr commented Dec 30, 2021

The reason it happens in your screenshot is because the bottom section is almost tall enough, but because it is not, the algorithm still thinks the previous section is in view.

What will we do if there are multiple small sections at the bottom?

Maybe we highlight based on mouse/touch area too.

Maybe it needs an update so that it detects which section is the most in view and/or centered on screen?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants