# Fix hunk diff hitbox \(\#12425\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 16745542b585d9d70a04e298794ffc1e27ba687e

Requested commit: 16745542b585d9d70a04e298794ffc1e27ba687e

Commit: 16745542b585d9d70a04e298794ffc1e27ba687e

Tree: 5aae40efbe8fed7fd4eb03cd681dbb6c3abf04eb

Author: Bennet Bo Fenner

Committer: GitHub

## Message

```
Fix hunk diff hitbox (#12425)

You can see in the video that hunks were getting toggled even when
clicking on the scrollbar.


https://github.com/zed-industries/zed/assets/53836821/11f201e8-c5f1-49c8-a4d2-ac3b3343b5a8

This happened because the hitbox was actually extended to the left of
the hunk indicator, I believe that was done so that "Removed" hunk
indicators rendered correctly (Red triangles)

Fixed:


https://github.com/zed-industries/zed/assets/53836821/7b451b37-da85-4e56-9127-2a5512bd9e7a

Release Notes:

- Fixed hunk indicators getting expanded when clicking near them (but
not on them)
```

## Parents

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

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