# Only apply scroll correction in \`uniform_list\` when already scrolled \(\#3687\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 54eb4521442d0edaf82cfa1104fb8947620ac0a5

Requested commit: 54eb4521442d0edaf82cfa1104fb8947620ac0a5

Commit: 54eb4521442d0edaf82cfa1104fb8947620ac0a5

Tree: 7eb376b3127023553fce5497d24bff615fe54fd7

Author: Marshall Bowers

Committer: GitHub

## Message

```
Only apply scroll correction in `uniform_list` when already scrolled (#3687)

This PR fixes an issue where the scroll correction added to the uniform
list in a35fdf45fc9de57b7696c4deacbc62c49b26a516 was being applied even
if the list wasn't scrolled at all.

This manifested in the project panel starting with an incorrect scroll
offset that would disappear once scrolled.

It seems like we should only need to apply this scroll correction when
the list is already scrolled.

Release Notes:

- N/A
```

## Parents

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

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