# Replace all X11 mouse events with XI2 equivalents \(\#11235\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 9a60c0a0590616e40516cc9ddd25d883ddd98dbe

Requested commit: 9a60c0a0590616e40516cc9ddd25d883ddd98dbe

Commit: 9a60c0a0590616e40516cc9ddd25d883ddd98dbe

Tree: 0af2d35311e0921583a5be0b68b2f29f1f2aa43e

Author: Owen Law

Committer: GitHub

## Message

```
Replace all X11 mouse events with XI2 equivalents (#11235)

This PR replaces all pointer events on X11 with their XI2 equivalents,
which fixes problems with scroll events not being reported when a mouse
button is down. Additionally it closes #11206 by resetting the tracked
global scroll valulator position with `None` on a leave event to prevent
a large scroll delta if scrolling is done outside the window. Lastly, it
resolves the bad window issue kvark was having.

Release Notes:

- Fixed X11 Scroll snapping (#11206 ).

---------

Co-authored-by: Mikayla Maki <mikayla@zed.dev>
```

## Parents

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

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