# Fix an issue where scrollbars would capture too many events \(\#39690\) · gitcafe/zed

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

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

Visibility: public

Requested revision: ded73c9d56c28cd9bf6e58adf80be3a82796052a

Requested commit: ded73c9d56c28cd9bf6e58adf80be3a82796052a

Commit: ded73c9d56c28cd9bf6e58adf80be3a82796052a

Tree: dd0e0dcc01ca3cc2ae96bd94ed8c0b49bcec01f1

Author: Finn Evers

Committer: GitHub

## Message

```
Fix an issue where scrollbars would capture too many events (#39690)

This PR fixes an issue where scrollbars would overagressively capture
some events, which could lead to clicks being lost in the process. Also
improves how hovering of the parent is detected to lead to less false
positives.

Release Notes:

- Fixed a rare issue where scrollbars would react to and capture events
they should not react to.
```

## Parents

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

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