mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 15:45:25 +00:00
LibWeb: Skip page scrolling for wheel events consumed by scrollable box
Leftover from 90879a07ba
This commit is contained in:
committed by
Andreas Kling
parent
a386ebde02
commit
0afbd827e0
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user