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)
```
56a2f9cfcf/crates/gpui/src/elements/div.rs (L1088-L1093)
56a2f9cfcf/crates/gpui/src/elements/div.rs (L613-L620)
|
2025-11-26 18:03:42 +01:00 |
|