gpui-component/crates/ui
Cyandev b8db00dd3c
scrollbar: Reduce unnecessary frame updates (#1104)
The current scrollbar implementation calls
`Window::request_animation_frame` during the delay phase, which causes
unnecessary CPU usage. This PR updates the scrollbar to use a timer to
wait before starting the fade-out animation, allowing the CPU to remain
idle during this phase.

There is the comparison with Instruments.
**Before:**
<img width="632" height="75" alt="image"
src="https://github.com/user-attachments/assets/b407f1e5-8337-4f8f-b308-2cc16f6bf7ba"
/>

**After:**
<img width="608" height="75" alt="image"
src="https://github.com/user-attachments/assets/965787cf-1a42-413a-9a5e-ad0910c5cbee"
/>
2025-07-30 09:55:24 +08:00
..
locales input: Improve clear button position in Input. (#782) 2025-04-11 19:13:17 +08:00
src scrollbar: Reduce unnecessary frame updates (#1104) 2025-07-30 09:55:24 +08:00
tests/fixtures dock: Revert dock to use absolute size. (#840) 2025-05-08 16:29:55 +08:00
Cargo.toml theme: Add to support highlight color to theme config. (#1055) 2025-07-14 17:04:18 +08:00
LICENSE-APACHE Add Dock & Panel (#10) 2024-07-01 14:20:56 +08:00