Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Conversation

@chrismwendt
Copy link
Contributor

@chrismwendt chrismwendt commented Apr 16, 2022

Fixes https://github.com/sourcegraph/sourcegraph/issues/33985

Test plan

Ran locally.

App preview:

Check out the client app preview documentation to learn more.

@cla-bot cla-bot bot added the cla-signed label Apr 16, 2022
highlightedRange,
hoverOrError,
hoveredTokenElement,
hoverOverlayPosition: undefined,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Setting this to undefined was making the hover disappear immediately, then another value would be emitted by some other Observable that would set the position again and make the hover reappear, causing flicker.

For context, the original intent of this line was: "Reset the hover position, it's gonna be repositioned after the hover was rendered"

CleanShot 2022-04-15 at 19 45 16@2x

From sourcegraph/codeintellify#196

@chrismwendt chrismwendt requested a review from mrnugget April 16, 2022 01:57
@chrismwendt chrismwendt merged commit f2847e1 into main Apr 19, 2022
@chrismwendt chrismwendt deleted the fix-hover-flicker branch April 19, 2022 15:16
@mrnugget
Copy link
Contributor

Sorry! Completely missed that PR. Good stuff! :)

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Codeintellify hover popover flickers

4 participants