LibWeb: Translate scrollbar gutters by the cumulative scroll offset

This `translate_by` function is invoked with the cumulative scroll
offset during display list execution. Applying the offset to the gutter
was missed in 66e422b4f1.
This commit is contained in:
Timothy Flynn 2025-05-06 07:55:26 -04:00 committed by Alexander Kalenik
commit 4fc8443757
Notes: github-actions[bot] 2025-05-06 13:39:22 +00:00

View file

@ -411,6 +411,7 @@ struct PaintScrollBar {
void translate_by(Gfx::IntPoint const& offset)
{
gutter_rect.translate_by(offset);
thumb_rect.translate_by(offset);
}
};