From 4fc8443757201c1c324a6613d8b82686ee6b6af3 Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Tue, 6 May 2025 07:55:26 -0400 Subject: [PATCH] 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 66e422b4f1d1bda1c328b99f964f3a8c2cb5d4b1. --- Libraries/LibWeb/Painting/Command.h | 1 + 1 file changed, 1 insertion(+) diff --git a/Libraries/LibWeb/Painting/Command.h b/Libraries/LibWeb/Painting/Command.h index d35945ab5ef..25b6b0ea635 100644 --- a/Libraries/LibWeb/Painting/Command.h +++ b/Libraries/LibWeb/Painting/Command.h @@ -411,6 +411,7 @@ struct PaintScrollBar { void translate_by(Gfx::IntPoint const& offset) { + gutter_rect.translate_by(offset); thumb_rect.translate_by(offset); } };