Skip to content

fix: embedded reference no longer pulls the page while it scrolls - #7

Merged
dskripchenko merged 1 commit into
mainfrom
fix/nav-scroll-page-jump
Oct 28, 2026
Merged

dskripchenko merged 1 commit into
mainfrom
fix/nav-scroll-page-jump

Conversation

@dskripchenko

Copy link
Copy Markdown
Owner

The scroll spy revealed the active navigation link with scrollIntoView({ block: 'nearest' }), which also scrolls the window. A reference in a fixed box on a longer page (the Confluence macro) whose top had scrolled above the window pulled the page back on every section change, so scrolling jerked back and forth.

  • revealIn(item, list) scrolls only the list that holds the item; used by the scroll spy (.oa-nav__scroll) and the search cursor (.oa-search__results). The scrollIntoView calls left are explicit navigation (go(), headings).
  • Browser check: the reference in a 640 px box between tall blocks, the box's top above the window, scrolled through; the page must stay put and the navigation must still follow. It fails on main (page pulled 1500 → 1318) and passes here.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dskripchenko
dskripchenko merged commit 47a2d39 into main Oct 28, 2026
4 checks passed
@dskripchenko
dskripchenko deleted the fix/nav-scroll-page-jump branch October 28, 2026 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant