mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-11 01:06:01 +03:00
LibGUI: Make ScrollBar show hover state of scrubber after gutter drag
With this, if clicking the gutter until the scrubber's below the mouse and then releasing the mouse, the scrubber is correctly highlighted after releasing the mouse.
This commit is contained in:
parent
a9136d0f47
commit
31510de6a8
Notes:
sideshowbarker
2024-07-19 03:10:20 +09:00
Author: https://github.com/nico Commit: https://github.com/SerenityOS/serenity/commit/31510de6a87 Pull-request: https://github.com/SerenityOS/serenity/pull/3299
@ -275,6 +275,7 @@ void ScrollBar::on_automatic_scrolling_timer_fired()
|
|||||||
}
|
}
|
||||||
if (m_pressed_component == Component::Gutter && component_at_position(m_last_mouse_position) == Component::Gutter) {
|
if (m_pressed_component == Component::Gutter && component_at_position(m_last_mouse_position) == Component::Gutter) {
|
||||||
scroll_by_page(m_last_mouse_position);
|
scroll_by_page(m_last_mouse_position);
|
||||||
|
m_hovered_component = component_at_position(m_last_mouse_position);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user