# Fix scroll jitter by ignoring autoscroll events if following \(\#4216\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 003073d53c3ffe3621e4c96c045e550cdcb1ab41

Requested commit: 003073d53c3ffe3621e4c96c045e550cdcb1ab41

Commit: 003073d53c3ffe3621e4c96c045e550cdcb1ab41

Tree: 21ea77fb321e6968ff128087084566bb6ba3ccf4

Author: Thorsten Ball

Committer: GitHub

## Message

```
Fix scroll jitter by ignoring autoscroll events if following (#4216)

When following someone else we saw jitter because
`ScrollPositionChanged` events were battling `SelectionsChanged` events,
both of which were scrolling the viewport.

This ignores the ScrollPositionChanged if autoscrolling is on.

Release Notes:

- Fixed jittery scrolling when following someone else that had a bigger
viewport.
```

## Parents

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

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

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