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
0df86e406a4baf73c30e45cf6629be964b7a5ad9
oak-gpui/crates/extensions_ui/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
..
components
…
components.rs
…
extension_suggest.rs
extensions_ui: Add XML extension suggestion for XML files (#42514)
2025-11-12 10:12:02 +00:00
extension_version_selector.rs
releases: Add build number to Nightly builds (#42990)
2025-11-24 13:34:04 +01:00
extensions_ui.rs
gpui: Unify track_scroll method to receive a reference type (#43518)
2025-11-26 18:03:42 +01:00
Powered by Gitea Version: 1.27.2 Page: 1482ms Template: 60ms
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