# wayland: fix handling of non-discrete scroll events \(\#9548\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 2c36652be2d8ea6b68a3bb82f11fe96208444f0e

Requested commit: 2c36652be2d8ea6b68a3bb82f11fe96208444f0e

Commit: 2c36652be2d8ea6b68a3bb82f11fe96208444f0e

Tree: e61d27089581925ccdba15f1fda2cbd98b41b133

Author: apricotbucket28

Committer: GitHub

## Message

```
wayland: fix handling of non-discrete scroll events (#9548)

https://github.com/zed-industries/zed/pull/9103 broke touchpad scrolling
on Wayland
This PR correctly filters the `Axis` to handle all non-discrete scroll
events (see
https://wayland.app/protocols/wayland#wl_pointer:enum:axis_source)

Should fix https://github.com/zed-industries/zed/issues/9525

Release Notes:

- N/A
```

## Parents

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

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