mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:28:12 +00:00
LibGUI: Don't repaint disabled scrollbars when mousing over them
This commit is contained in:
parent
b027466f41
commit
c0e20252da
1 changed files with 4 additions and 2 deletions
|
@ -332,7 +332,8 @@ void Scrollbar::mousemove_event(MouseEvent& event)
|
|||
auto old_hovered_component = m_hovered_component;
|
||||
m_hovered_component = component_at_position(m_last_mouse_position);
|
||||
if (old_hovered_component != m_hovered_component) {
|
||||
update();
|
||||
if (is_enabled())
|
||||
update();
|
||||
}
|
||||
if (m_pressed_component != Component::Scrubber)
|
||||
return;
|
||||
|
@ -347,7 +348,8 @@ void Scrollbar::leave_event(Core::Event&)
|
|||
{
|
||||
if (m_hovered_component != Component::None) {
|
||||
m_hovered_component = Component::None;
|
||||
update();
|
||||
if (is_enabled())
|
||||
update();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue