Skip to content

[Feature Request]: Auto-Scroll Table of Contents to Active Section #2519

Description

@Pranav-IIITM

What happens now

When scrolling through long documentation pages, the right-hand Table of Contents (TOC) updates its active state but does not automatically scroll to keep the currently active section in view.

Once you scroll far enough down the main content, the active TOC item gets hidden below the visible area of the sidebar, forcing the user to manually scroll the TOC to see their current position.

(view the screen recording in full screen view)

doesnotautoscroll.mp4

Proposed feature

As the user scrolls through the main content, the Table of Contents container should automatically scroll to ensure the currently active section remains visible (preferably centered) in the right sidebar.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions