Skip to content

SD-2663 - feature: support table of contents hovering#3333

Open
chittolinag wants to merge 3 commits into
mainfrom
gabriel/sd-2663-feature-support-table-of-contents-interactions
Open

SD-2663 - feature: support table of contents hovering#3333
chittolinag wants to merge 3 commits into
mainfrom
gabriel/sd-2663-feature-support-table-of-contents-interactions

Conversation

@chittolinag
Copy link
Copy Markdown
Contributor

Introducing a new hover state for TOCs. Like MS Word does, when you hover in a TOC, we provide a visual feedback to the user with a grey background.

@linear-code
Copy link
Copy Markdown

linear-code Bot commented May 15, 2026

SD-2663

@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@chittolinag chittolinag marked this pull request as ready for review May 15, 2026 23:15
@chittolinag chittolinag requested a review from a team as a code owner May 15, 2026 23:15
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4544d0019d

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +1802 to +1805
const pendingTocLink = this.#pendingTocLinkNav;
this.#pendingTocLinkNav = null;
if (pendingTocLink && !this.#dragThresholdExceeded) {
this.#handleLinkClick(event, pendingTocLink);
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Gate deferred TOC navigation on pointerup target

The deferred TOC path always calls #handleLinkClick on pointerup when #dragThresholdExceeded is false, but it never verifies that the pointer was released on the same TOC link (or even inside it). Because this handler stores the link from pointerdown, a user can press on a TOC entry, move off the link, and still trigger goToAnchor on release, which removes the expected ability to cancel the action by releasing elsewhere.

Useful? React with 👍 / 👎.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants