# ui: Fix scrollbar animation timing on web \(\#61786\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 97961c2a5f1ecb74f0cfdc6dbf87f5229138fe5c

Requested commit: 97961c2a5f1ecb74f0cfdc6dbf87f5229138fe5c

Commit: 97961c2a5f1ecb74f0cfdc6dbf87f5229138fe5c

Tree: f1b4d6480c4d061bab7500f2434c64ac969ba727

Author: Gaauwe Rombouts

Committer: GitHub

## Message

```
ui: Fix scrollbar animation timing on web (#61786)

Use `web_time::Instant` instead of `std::time::Instant` when advancing
scrollbar animations. This uses the web platform's compatible clock in
WASM builds.

Release Notes:
- N/A
```

## Parents

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

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