# Update tooltip code a bit · gitcafe/zed

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

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

Visibility: public

Requested revision: de5458cfe0f419324a7258647b887c0eb8db5c71

Requested commit: de5458cfe0f419324a7258647b887c0eb8db5c71

Commit: de5458cfe0f419324a7258647b887c0eb8db5c71

Tree: 45007dd00ff79be4048a63091bac515206527c1b

Author: Conrad Irwin

Committer: Conrad Irwin

## Message

```
Update tooltip code a bit

This fixes a tiny UX bug where the tooltip would appear to move if you
hovered over an element, then moved your mouse out and back within
500ms.

The fix is to retain the task, so we can drop it to cancel it when the
mouse leaves.

Also changes the time we construct the tooltip to the time it first
shows.

```

## Parents

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

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