mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00:00
LibGUI: Repaint GScrollBar without hover highlight immediately on leave.
This commit is contained in:
parent
4abffa4dbe
commit
b8f150457e
Notes:
sideshowbarker
2024-07-19 14:47:02 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/b8f150457e8
1 changed files with 4 additions and 1 deletions
|
@ -295,5 +295,8 @@ void GScrollBar::mousemove_event(GMouseEvent& event)
|
|||
|
||||
void GScrollBar::leave_event(GEvent&)
|
||||
{
|
||||
m_hovered_component = Component::Invalid;
|
||||
if (m_hovered_component != Component::Invalid) {
|
||||
m_hovered_component = Component::Invalid;
|
||||
update();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue