Skip to content

Commit

Permalink
LibGUI: Make GUI::Widget ignore wheel events by default
Browse files Browse the repository at this point in the history
This makes wheel events bubble up to parent widgets, which is useful
in case they care about wheel events even if their children don't.
  • Loading branch information
awesomekling committed May 4, 2021
1 parent ec27cbb commit d136faf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Userland/Libraries/LibGUI/Widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -483,8 +483,9 @@ void Widget::mousemove_event(MouseEvent&)
{
}

void Widget::mousewheel_event(MouseEvent&)
void Widget::mousewheel_event(MouseEvent& event)
{
event.ignore();
}

void Widget::context_menu_event(ContextMenuEvent&)
Expand Down

0 comments on commit d136faf

Please sign in to comment.