# Remove tooltips on scroll wheel events \(\#10069\) · gitcafe/zed

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

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

Visibility: public

Requested revision: ad03a7e72cc06aa2d13e09a8058010998c469687

Requested commit: ad03a7e72cc06aa2d13e09a8058010998c469687

Commit: ad03a7e72cc06aa2d13e09a8058010998c469687

Tree: 350a77831392961c82c153a2f758ccc0f5df6b7a

Author: Thorsten Ball

Committer: GitHub

## Message

```
Remove tooltips on scroll wheel events (#10069)

This fixes #9928 by invalidating the tooltip on mouse scroll.

I think _ideally_ we'd have a solution that only invalidates it if,
after mouse scroll, we're not hovering over the element. But I tried
that (by essentially duplicating the code for `MouseMoveEvent` but that
lead to some inconsistencies. I think we don't redraw when we finish
scrolling.

This now behaves exactly like tooltips in Chrome: invalidate on scroll,
move mouse again to trigger the tooltip.

It also behaves like the hover tooltips in the editor.


https://github.com/zed-industries/zed/assets/1185253/05b9170e-414c-4453-84e5-90510b943c15


Release Notes:

- N/A
```

## Parents

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

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