# Fix editor scrolling when closing tab using middle mouse button \(\#12429\) · gitcafe/zed

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

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

Visibility: public

Requested revision: dca5bc5986850b6d05c2fb06534b6c89de6cf27e

Requested commit: dca5bc5986850b6d05c2fb06534b6c89de6cf27e

Commit: dca5bc5986850b6d05c2fb06534b6c89de6cf27e

Tree: be96b11d060342b950bfdf355af475952b1e7e8b

Author: Bennet Bo Fenner

Committer: GitHub

## Message

```
Fix editor scrolling when closing tab using middle mouse button (#12429)

#12005 introduced a side effect, that would cause the editor to react to
a scroll event when using the middle mouse button to close a tab

Before:


https://github.com/zed-industries/zed/assets/53836821/46cb2e71-e9d5-477c-b34a-dc9b6bc9b1f1

After:


https://github.com/zed-industries/zed/assets/53836821/6ada7985-97c9-4b52-848f-c7f9461c5216

Release Notes:

- Fixed an issue where the editor would scroll upwards if other tabs
were closed using the middle mouse button
```

## Parents

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

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