mirror of
https://github.com/RGBCube/serenity
synced 2025-05-16 07:14:57 +00:00

By moving scroll offset clamp from `PaintableBox::scroll_by()` to `PaintableBox::set_scroll_offset()`, we ensure that updates from `Element::set_scroll_top()` and `Element::set_scroll_left()` are constrained to a valid range.
2 lines
116 B
Text
2 lines
116 B
Text
Item 1Item 2Item 3Item 4Item 5Item 6Item 7Item 8Item 9Item 10Item 11Item 12 scrollWidth: 1430
|
|
scrollLeft: 1130
|