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

LibGUI: Handle Enter+Leave events for automatic cursor trackers

Previously, automatic cursor tracking widgets consumed all mouse
events but did not update their own hover state while active, meaning
Enter and Leave events were not being dispatched.

Fixes TextEditor's automatic selection scroll timer failing to stop
and start while autotracking. Its manual workaround in mousedown
is no longer needed.
This commit is contained in:
thankyouverycool 2022-11-21 10:24:59 -05:00 committed by Andreas Kling
parent a969eac848
commit 5b02e6a46b
2 changed files with 12 additions and 8 deletions

View file

@ -280,7 +280,6 @@ void TextEditor::mousedown_event(MouseEvent& event)
}
m_in_drag_select = true;
m_automatic_selection_scroll_timer->start();
set_cursor(text_position_at(event.position()));