# Use a \`MouseEventHandler\` for activating tabs on mouse down · gitcafe/zed

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

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

Visibility: public

Requested revision: 82d6e606fc35e4bc0b50afcb774c8cbd55faf5aa

Requested commit: 82d6e606fc35e4bc0b50afcb774c8cbd55faf5aa

Commit: 82d6e606fc35e4bc0b50afcb774c8cbd55faf5aa

Tree: c4b61e48f5657ec39d2a4918dd58567eec0ad198

Author: Antonio Scandurra

Committer: Antonio Scandurra

## Message

```
Use a `MouseEventHandler` for activating tabs on mouse down

Previously, we were using an `EventHandler` which doesn't take into
account other mouse regions floating above the rendered element. This
was problematic because, when clicking the `x` icon on a tab that was
not active, we were first activating it and then closing it.

```

## Parents

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

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