# Support zooming and panning in the image viewer \(\#43944\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 59738a777684a83cf9ded9646719887022e0f675

Requested commit: 59738a777684a83cf9ded9646719887022e0f675

Commit: 59738a777684a83cf9ded9646719887022e0f675

Tree: e3e9fc9819caf5722bcc11b88e1627ec940acc00

Author: MostlyK

Committer: GitHub

## Message

```
Support zooming and panning in the image viewer (#43944)

Implemented Pan and Zoom on the Image Viewer.

Demo:



https://github.com/user-attachments/assets/855bafe8-fdc2-4945-9bfb-e48382264806





Closes #9584



Release Notes:

- Add zoom in/out, reset, fit-to-view and zoom-to-actual actions 
- Support scroll-wheel zoom with modifier, click-and-drag panning 
- Renders a zoom percentage overlay. 
- ImageView Toolbar Added to control zoom in/out and fit view.

---------

Co-authored-by: MrSubidubi <finn@zed.dev>
```

## Parents

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

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