Skip to content

ui: Fix scrollbar animation timing on web - #61786

Merged
gaauwe merged 1 commit into
mainfrom
fix/wasm-scrollbar-clock
Jul 29, 2026
Merged

ui: Fix scrollbar animation timing on web#61786
gaauwe merged 1 commit into
mainfrom
fix/wasm-scrollbar-clock

Conversation

@gaauwe

@gaauwe gaauwe commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

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

@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label Jul 28, 2026
@zed-community-bot zed-community-bot Bot added the staff Pull requests authored by a current member of Zed staff label Jul 28, 2026
@gaauwe
gaauwe force-pushed the fix/wasm-scrollbar-clock branch from e3f1d82 to 8044acc Compare July 28, 2026 14:20
@gaauwe
gaauwe added this pull request to the merge queue Jul 29, 2026
Merged via the queue into main with commit 97961c2 Jul 29, 2026
38 checks passed
@gaauwe
gaauwe deleted the fix/wasm-scrollbar-clock branch July 29, 2026 10:11
jolutz pushed a commit to jolutz/zed that referenced this pull request Aug 8, 2026
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
playdohface pushed a commit to playdohface/zed that referenced this pull request Aug 29, 2026
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement staff Pull requests authored by a current member of Zed staff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants