mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:17:44 +00:00
LibGUI: Make GUI::Widget ignore wheel events by default
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.
This commit is contained in:
parent
ec27cbbb2a
commit
d136fafde7
1 changed files with 2 additions and 1 deletions
|
@ -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&)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue