Skip to content

Simplify scrollToElement to use scrollIntoView#97

Closed
RasmusEdvardsen wants to merge 1 commit into
marktext:masterfrom
RasmusEdvardsen:bugfix/fix-scroll-to-element-not-scrolling
Closed

Simplify scrollToElement to use scrollIntoView#97
RasmusEdvardsen wants to merge 1 commit into
marktext:masterfrom
RasmusEdvardsen:bugfix/fix-scroll-to-element-not-scrolling

Conversation

@RasmusEdvardsen
Copy link
Copy Markdown

Got a bit annoyed that the anchors didn't scroll down to the specific content - this PR should fix that.
Cheers,
Rasmus

@marktext marktext deleted a comment from vercel Bot May 20, 2026
@Jocs Jocs closed this May 20, 2026
@Jocs
Copy link
Copy Markdown
Member

Jocs commented May 20, 2026

Thanks for the contribution! Closing this in favor of #95, which takes the same simplification approach but preserves the 60px offset needed for the fixed TitleBar (otherwise the anchor scrolls under the header). Really appreciate you opening this — please feel welcome to send more PRs!

@RasmusEdvardsen RasmusEdvardsen deleted the bugfix/fix-scroll-to-element-not-scrolling branch May 20, 2026 05:58
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.

2 participants