1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:17:44 +00:00

LibGUI: Ignore the Enter event by default

If this is not ignored by default, then one can move the mouse fast
enough to skip hovering over a parent element and hover directly over
the child, causing the parent to never receive an Enter event.
This commit is contained in:
sin-ack 2021-07-25 21:11:36 +00:00 committed by Ali Mohammad Pur
parent cfc9ee6f16
commit a5a32fbcce

View file

@ -523,8 +523,9 @@ void Widget::focusout_event(FocusEvent&)
{
}
void Widget::enter_event(Core::Event&)
void Widget::enter_event(Core::Event& event)
{
event.ignore();
}
void Widget::leave_event(Core::Event&)