镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Invalidate the hovered sample when the thread changes - #6374

Open
GBra-4-669 wants to merge 1 commit into
firefox-devtools:mainfrom
GBra-4-669:invalidate-hovered-sample
Open

GBra-4-669 wants to merge 1 commit into
firefox-devtools:mainfrom
GBra-4-669:invalidate-hovered-sample

Conversation

@GBra-4-669

@GBra-4-669 GBra-4-669 commented Oct 6, 2026 •

Copy link
Copy Markdown

Main | Deploy preview

Fixes #5690.

The hovered sample belongs to the thread that was shown when the mouse last
moved. Changing the committed range can leave the tooltip pointing at a sample
index that's no longer valid or at the wrong sample. The hover is now cleared
when the thread changes.

@fatadel
fatadel self-requested a review October 26, 2026 17:05

@fatadel fatadel left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for your contribution, @GBra-4-669! One thing that I've immediately noticed is the excessive amount of comments in the code. The code by itself should be readable and understandable, there is really no need to comment every line/block. We try to keep only absolutely necessary comments, that for example explain some non-obvious behavior.

Could you please redo your code, given this input?

Also, it would be nice if you could shrink the PR description and the commit message too. There is no need to explain implementation details. It should be a concise WHAT with a bit more elaborate WHY. Remember, those parts are meant to be read primarily by humans, not the AI.

The hovered sample belongs to the thread that was shown when the mouse last
moved. Changing the committed range can leave the tooltip pointing at a sample
index that's no longer valid or at the wrong sample. The hover is now cleared
when the thread changes.

Fixes firefox-devtools#5690
@GBra-4-669
GBra-4-669 force-pushed the invalidate-hovered-sample branch from 24a10ee to 62f79ab Compare October 26, 2026 18:09
@GBra-4-669
GBra-4-669 requested a review from fatadel October 26, 2026 18:14
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.

TypeError: can't access property "color", n[s] is undefined

2 participants