# Fix janky editor scrollbar dragging · gitcafe/zed

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

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

Visibility: public

Requested revision: b30fd3f5743863b8fc566ecb479f97c8f57ab30f

Requested commit: b30fd3f5743863b8fc566ecb479f97c8f57ab30f

Commit: b30fd3f5743863b8fc566ecb479f97c8f57ab30f

Tree: 20bc826f38ec14d575ad4e7ccbf5ddbba090804e

Author: Antonio Scandurra

Committer: Antonio Scandurra

## Message

```
Fix janky editor scrollbar dragging

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.

```

## Parents

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

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