# Fix two mouse event bugs \(\#2835\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 40030f32d982a1faff17337591d1ec9283f9dccf

Requested commit: 40030f32d982a1faff17337591d1ec9283f9dccf

Commit: 40030f32d982a1faff17337591d1ec9283f9dccf

Tree: 092e2e094fcdeff0976749ea39c17132fc7f68dc

Author: Mikayla Maki

Committer: GitHub

## Message

```
Fix two mouse event bugs (#2835)

This PR fixes two bugs we discovered in Zed's mouse event handling while
investigating an interesting and mysterious bug we we were seeing, where
spurious `MouseMoved` events would continuously be dispatched after
control-clicking.

Release Notes:

- Fixed a rendering glitch that could occur after control-clicking
certain elements.
```

## Parents

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

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

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