obsidianmd / obsidianmd/obsidian-developer-docs

On-page outline does not highlight last section when scrolling to bottom

Open Beginner friendly
#262 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
521
Forks
174
PR merge metrics
No merged PRs in 30d

Description

Bug

When scrolling to the bottom of a documentation page, the final heading in the "On this page" outline does not become active.

Steps to reproduce

  1. Open any long documentation page
  2. Scroll near the bottom
  3. Continue scrolling until the final section is visible

Expected behavior

The final heading should become highlighted in the outline.

Actual behavior

The page reaches the bottom before the final heading can trigger the scroll observer, leaving the previous heading highlighted.

Image Image

Possible fix

Adding extra scroll space/padding at the bottom of the content container allows the final heading to enter the observer area.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the documentation page's On this page outline and scroll-observer logic, then inspect how the content container ends at the bottom of a long page. Verify the final heading becomes active when it is visible, and confirm the previous heading is no longer highlighted.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
documentation, frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
70/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.