# image_viewer: Add pinch event support \(\#47351\) · gitcafe/zed

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

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

Visibility: public

Requested revision: ac2f097559ecbaab6f55ca5a519f53b80ac54afb

Requested commit: ac2f097559ecbaab6f55ca5a519f53b80ac54afb

Commit: ac2f097559ecbaab6f55ca5a519f53b80ac54afb

Tree: 6089f00bb90422bf081d3bcab6539955030e4d58

Author: MostlyK

Committer: GitHub

## Message

```
image_viewer: Add pinch event support (#47351)

This change implements pinch / magnification gesture handling.

This uses the following wayland
[protocol](https://wayland.app/protocols/pointer-gestures-unstable-v1).
And the following
[API](https://developer.apple.com/documentation/appkit/nsevent/magnification)
for mac.

- Original: https://github.com/gpui-ce/gpui-ce/pull/11

Release Notes:

- Zooming works with pinching in and out inside Image Viewer
```

## Parents

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

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