# editor: Fix inline blame show/hide not working until buffer interaction \(\#32683\) · gitcafe/zed

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

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

Visibility: public

Requested revision: aa1cb9c1e12ea7f0dc84f543b0e7115e2ee18b33

Requested commit: aa1cb9c1e12ea7f0dc84f543b0e7115e2ee18b33

Commit: aa1cb9c1e12ea7f0dc84f543b0e7115e2ee18b33

Tree: 09574881b69d17a23cbb64d17f17e2a357d53c1a

Author: Smit Barmase

Committer: GitHub

## Message

```
editor: Fix inline blame show/hide not working until buffer interaction (#32683)

We recently fixed the issue of `cx.notify` on every mouse move event
https://github.com/zed-industries/zed/pull/32408. As this perf bug was
there for a long time, we made some not-optimal choices for checking
things like if the mouse is hovering over an element in the prepaint
phase rather than the `mouse_move` listener.

After the mentioned fix, it regressed these code paths as prepaint is
not being called for every other frame, and hence the mouse hovering
logic never triggers. This bug is directly noticeable when the
"cursor_blink" setting is turned off, which notifies the editor on every
second.

This PR fixes that for git inline blame popover by moving logic to
show/hide in `mouse_move` instead of prepaint phase. `cx.notify` is only
get called only when popover is shown or hidden.

Release Notes:

- Fixed git inline blame not correctly showing in Editor on hover when
`cursor_blink` is `false`.
```

## Parents

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

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