# Delay hiding git blame tooltip \(\#22644\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/ac214c52c916ee4d130d170726462055792229df)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: ac214c52c916ee4d130d170726462055792229df

Requested commit: ac214c52c916ee4d130d170726462055792229df

Commit: ac214c52c916ee4d130d170726462055792229df

Tree: ce0cc860505487296b307ce4b81f351b60525813

Author: Michael Sloan

Committer: GitHub

## Message

```
Delay hiding git blame tooltip (#22644)

It's easy to overshoot the bottom of the tooltip when cursoring to a
button, such as opening the commit from a blame tooltip. Before this
change the tooltip would immediately disappear, and now it sticks around
for a bit.

Also:

* Shares the implementation with `elements/text.rs`. This will
particularly be handy when it makes use of hoverable tooltips.

* Improves the fix to #21657.

- Now the element will no longer think it has an active tooltip that it
registers with the window.

- It will instead display the next available tooltip, whereas I believe
before the next available tooltip would be suppressed.

* Fixes bug where `cx.refresh()` wasn't called when text tooltip is
hidden due to a mouse down event.

* Ports over fix in https://github.com/zed-industries/zed/pull/14832 to
`elements/text.rs`

Release Notes:

- The tooltip for inline git blame now waits a bit before disappearing
when the mouse leaves it.
```

## Parents

- [985544ffb9379720f80f251e32fb5f46461390fd](https://git.cafe/gitcafe/zed/commit/985544ffb9379720f80f251e32fb5f46461390fd?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/ac214c52c916ee4d130d170726462055792229df?format=markdown)
