LibWeb: Skip page scrolling for wheel events consumed by scrollable box

Leftover from 90879a07ba
This commit is contained in:
Aliaksandr Kalenik 2024-03-17 08:02:52 +01:00 committed by Andreas Kling
commit 0afbd827e0
Notes: sideshowbarker 2024-07-17 02:29:45 +09:00
3 changed files with 37 additions and 1 deletions

View file

@ -180,7 +180,8 @@ bool EventHandler::handle_mousewheel(CSSPixelPoint position, CSSPixelPoint scree
containing_block = containing_block->containing_block();
}
paintable->handle_mousewheel({}, position, buttons, modifiers, wheel_delta_x, wheel_delta_y);
if (paintable->handle_mousewheel({}, position, buttons, modifiers, wheel_delta_x, wheel_delta_y))
return true;
auto node = dom_node_for_event_dispatch(*paintable);