Files
oak-gpui/crates
Jason Lee 65759d4316 gpui: Fix Interactivity prepaint to update scroll_handle bounds (#35013)
It took a long time to check this problem.

Finally, I found that due to a detail missing when changing #34832, the
bounds of `ScrollHandle` was not updated in the Interactivity `prepaint`
phase.

```diff
- scroll_handle_state.padded_content_size = padded_content_size;
+ scroll_handle_state.max_offset = scroll_max;
```

It was correct before the change, because the `padded_content_size`
(including `bounds.size`) was saved before, and the bounds was missing
after changing to `max_offset`, but the bounds were not updated
anywhere.

So when `scroll_handle.bounds()` is obtained outside, it is always 0px
here.

@MrSubidubi

Release Notes:

- N/A
2025-07-24 08:27:29 +00:00
..
2025-07-21 11:11:37 -03:00
2025-07-21 13:44:51 +02:00
2025-07-19 01:27:54 +00:00
2025-06-17 20:26:27 +00:00
2025-07-17 14:25:55 +00:00
2025-07-08 14:34:57 +00:00
2025-07-09 16:02:31 +00:00
2025-07-23 23:27:07 -06:00
2025-07-23 23:06:05 -06:00
2025-07-23 18:14:39 +00:00