mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-10 17:12:41 +02:00
GDK4 scroll events do not carry reliable pointer coordinates on Wayland (gdk_event_get_position returns INT_MIN). Track the last known pointer position from the motion controller and use it when building the wheel event, matching the approach used by WebKit GTK. This fixes mouse-wheel scrolling and scrollbar interaction in pages with overflow containers such as the pdf.js viewer.