Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove stuck tooltips (cherry-pick #22548) #22550

Merged
merged 1 commit into from
Jan 1, 2025

Conversation

gcp-cherry-pick-bot[bot]
Copy link

Cherry-picked Remove stuck tooltips (#22548)

Closes #21657

Follow-up of #22488
Previous PR broke git blame tooltips, which are expected to be open when
hovered, even if the mouse cursor is moved away from the actual blame
entry that caused the tooltip to appear.

Current version moves the invalidation logic into prepaint_tooltip,
where the new data about the tooltip origin is used to ensure we
invalidate only tooltips that have no mouse cursor in either origin
bounds or tooltip bounds (if it's hoverable).

Release Notes:

  • Fixed tooltips getting stuck

Closes #21657

Follow-up of #22488
Previous PR broke git blame tooltips, which are expected to be open when
hovered, even if the mouse cursor is moved away from the actual blame
entry that caused the tooltip to appear.

Current version moves the invalidation logic into `prepaint_tooltip`,
where the new data about the tooltip origin is used to ensure we
invalidate only tooltips that have no mouse cursor in either origin
bounds or tooltip bounds (if it's hoverable).


Release Notes:

- Fixed tooltips getting stuck
@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Jan 1, 2025
@SomeoneToIgnore SomeoneToIgnore merged commit b800ff5 into v0.168.x Jan 1, 2025
12 checks passed
@SomeoneToIgnore SomeoneToIgnore deleted the cherry-pick-5421ca-v0.168.x branch January 1, 2025 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed The user has signed the Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant