mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-12 09:57:00 +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.