# git: Fix desynced scrolling between LHS and RHS of side-by-side diff \(\#47913\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 8d18b7b927d13c9fa8bcb2f96d239674538d1464

Requested commit: 8d18b7b927d13c9fa8bcb2f96d239674538d1464

Commit: 8d18b7b927d13c9fa8bcb2f96d239674538d1464

Tree: 9a9f2ada12533834c916b880bd599965525878dc

Author: Cole Miller

Committer: GitHub

## Message

```
git: Fix desynced scrolling between LHS and RHS of side-by-side diff (#47913)

- Remove old attempt to sync scrolling
- Share a `ScrollAnchor` between the two sides, and be sure to resolve
it against the correct snapshot
- Allow either side to initiate an autoscroll request, and make sure
that request is processed in the same frame by the other side

Release Notes:

- N/A

---------

Co-authored-by: cameron <cameron.studdstreet@gmail.com>
Co-authored-by: Zed Zippy <234243425+zed-zippy[bot]@users.noreply.github.com>
Co-authored-by: Jakub <jakub@zed.dev>
```

## Parents

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

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