# Fix mouse interactions with the project and branch switchers \(\#9222\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 409aa513d4af7d2971efbd45c8e554065a6e4b0d

Requested commit: 409aa513d4af7d2971efbd45c8e554065a6e4b0d

Commit: 409aa513d4af7d2971efbd45c8e554065a6e4b0d

Tree: 18851fb2b1295c6bb3d125c7fc3544f93aded9c0

Author: Antonio Scandurra

Committer: GitHub

## Message

```
Fix mouse interactions with the project and branch switchers (#9222)

Previously, we were considering the mouse to be "out" of a div when its
hitbox wasn't hovered. However, if a parent listened for
"mouse_down_out" and a child occluded the parent, the parent would
always think the mouse was out even when the user clicked the child.

This commit changes the definition of "mouse out" to simply mean "does
not contain the point", without accounting for occlusion.

Release Notes:

- N/A

Co-authored-by: Julia <julia@zed.dev>
```

## Parents

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

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