# Fix janky editor scrollbar dragging \(\#3710\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 91b65958a78ca703e15667de942180ffe2d80e5d

Requested commit: 91b65958a78ca703e15667de942180ffe2d80e5d

Commit: 91b65958a78ca703e15667de942180ffe2d80e5d

Tree: 20bc826f38ec14d575ad4e7ccbf5ddbba090804e

Author: Antonio Scandurra

Committer: GitHub

## Message

```
Fix janky editor scrollbar dragging (#3710)

We can receive multiple events before computing the next frame, and in
that case we want to compute a drag delta between the position for the
previous mouse event and the current one.

Release Notes:

- N/A
```

## Parents

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

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

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