# assistant2: Don't scroll down if user has scrolled up \(\#27614\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 60a7455f12cabbcb357a9ebc9c98273237c762fb

Requested commit: 60a7455f12cabbcb357a9ebc9c98273237c762fb

Commit: 60a7455f12cabbcb357a9ebc9c98273237c762fb

Tree: d3782d5c0c12b9492861cd5724ddc7ef58b31b6d

Author: Richard Feldman

Committer: GitHub

## Message

```
assistant2: Don't scroll down if user has scrolled up (#27614)

This caused undesirable and unnecessary scrolling, in that if you scroll
up, then as new messages stream into the panel, they jump the scroll bar
back down.

@agu-z and I paired on this and we think this is unnecessary now that we
don't see the Edit button in the UI, but @bennetbo we still see code for
the button in there, so...maybe we do still want this? (If so, we can
revert the second commit and go back to a more conditional way of
scrolling. 😄)

Release Notes:

- N/A

---------

Co-authored-by: Agus <agus@zed.dev>
```

## Parents

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

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