LibWeb: Plumb wheel events from widget layer to EventHandler

This commit is contained in:
Andreas Kling 2021-02-22 19:45:41 +01:00
commit ded8c728d2
Notes: sideshowbarker 2024-07-18 22:00:26 +09:00
11 changed files with 32 additions and 0 deletions

View file

@ -73,6 +73,11 @@ Layout::InitialContainingBlockBox* EventHandler::layout_root()
return m_frame.document()->layout_node();
}
bool EventHandler::handle_mousewheel(const Gfx::IntPoint& position, unsigned int buttons, unsigned int modifiers, int wheel_delta)
{
return false;
}
bool EventHandler::handle_mouseup(const Gfx::IntPoint& position, unsigned button, unsigned modifiers)
{
if (!layout_root())