Skip to content

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

Description

@wudidehuangtiandi

image

Activity

  1. wudidehuangtiandi commented on Dec 29, 2021

    @wudidehuangtiandi
    Author

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

  2. trusktr commented on Dec 29, 2021

    @trusktr
    Member

    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?

  3. wudidehuangtiandi commented on Dec 30, 2021

    @wudidehuangtiandi
    Author

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

  4. trusktr commented on Dec 30, 2021

    @trusktr
    Member

    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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions