Logo
Explore Help
Sign In
oak-team/oak-gpui
Watch 3
Star 0
Fork 0
Code Issues Pull Requests Packages Projects Releases Wiki Activity
Files
1a23115773ac3466444256992f661ee31cbaace2
oak-gpui/crates/zed/src
T
History
Jason Lee 1a23115773 gpui: Unify track_scroll method to receive a reference type (#43518)
Release Notes:

- N/A

This PR to change the `track_scroll` method to receive a reference type
like the
[Div#track_scroll](https://docs.rs/gpui/latest/gpui/trait.StatefulInteractiveElement.html#method.track_scroll),
[Div#track_focus](https://docs.rs/gpui/latest/gpui/trait.InteractiveElement.html#method.track_focus).


```diff
- .track_scroll(self.scroll_handle.clone())
+ .track_scroll(&self.scroll_handle)

- .vertical_scrollbar_for(self.scroll_handle.clone(), window, cx)
+ .vertical_scrollbar_for(&self.scroll_handle, window, cx)
```


https://github.com/zed-industries/zed/blob/56a2f9cfcf0c6a3c38f596b58002953763cd890f/crates/gpui/src/elements/div.rs#L1088-L1093


https://github.com/zed-industries/zed/blob/56a2f9cfcf0c6a3c38f596b58002953763cd890f/crates/gpui/src/elements/div.rs#L613-L620
2025-11-26 18:03:42 +01:00
..
zed
gpui: Unify track_scroll method to receive a reference type (#43518)
2025-11-26 18:03:42 +01:00
main.rs
releases: Add build number to Nightly builds (#42990)
2025-11-24 13:34:04 +01:00
reliability.rs
Use metrics-id for sentry user id when we have it (#42931)
2025-11-17 23:44:59 +00:00
zed-main.rs
Fix Unexpected Console Window When Running Zed Release Build (#32144)
2025-06-05 19:38:19 +08:00
zed.rs
mcp: Fix source property showing up as undefined in settings (#43417)
2025-11-25 16:03:21 +00:00
Powered by Gitea Version: 1.27.2 Page: 749ms Template: 10ms
Auto
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API