mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02: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.