diff --git a/Libraries/LibWeb/Painting/PaintableBox.cpp b/Libraries/LibWeb/Painting/PaintableBox.cpp index 08d05645935..3fd09e3d9e0 100644 --- a/Libraries/LibWeb/Painting/PaintableBox.cpp +++ b/Libraries/LibWeb/Painting/PaintableBox.cpp @@ -1049,6 +1049,11 @@ Paintable::DispatchEventOfSameName PaintableBox::handle_mousemove(Badge) { + // FIXME: early return needed as MacOSX calls this even when user is pressing mouse button + // https://github.com/LadybirdBrowser/ladybird/issues/5844 + if (m_scroll_thumb_dragging_direction.has_value()) + return; + auto previous_draw_enlarged_horizontal_scrollbar = m_draw_enlarged_horizontal_scrollbar; m_draw_enlarged_horizontal_scrollbar = false; if (previous_draw_enlarged_horizontal_scrollbar != m_draw_enlarged_horizontal_scrollbar)