# Fix scroll jitter by ignoring autoscroll events if following · gitcafe/zed

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

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

Visibility: public

Requested revision: 030b20ace93aabbf1939994e39bc95d28404bd9d

Requested commit: 030b20ace93aabbf1939994e39bc95d28404bd9d

Commit: 030b20ace93aabbf1939994e39bc95d28404bd9d

Tree: 21ea77fb321e6968ff128087084566bb6ba3ccf4

Author: Thorsten Ball

Committer: Thorsten Ball

## Message

```
Fix scroll jitter by ignoring autoscroll events if following

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.

Co-authored-by: Antonio <antonio@zed.dev>
Co-authored-by: Julia <julia@zed.dev>

```

## Parents

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

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