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
Notes:
sideshowbarker
2024-07-18 18:43:18 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/d136fafde7e
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
Reference in a new issue