mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-07 08:39:22 +00:00
LibGUI: Don't invalidate scrollbar rect if disabled
No need to repaint if it's not scrollable, this saves a tiny bit of repaint :)
This commit is contained in:
parent
0229663102
commit
b57f7def1f
Notes:
sideshowbarker
2024-07-18 08:44:56 +09:00
Author: https://github.com/metmo
Commit: b57f7def1f
Pull-request: https://github.com/SerenityOS/serenity/pull/8882
Reviewed-by: https://github.com/gunnarbeutner ✅
1 changed files with 3 additions and 0 deletions
|
@ -327,6 +327,9 @@ Scrollbar::Component Scrollbar::component_at_position(const Gfx::IntPoint& posit
|
|||
|
||||
void Scrollbar::mousemove_event(MouseEvent& event)
|
||||
{
|
||||
if (!is_scrollable())
|
||||
return;
|
||||
|
||||
m_last_mouse_position = event.position();
|
||||
|
||||
auto old_hovered_component = m_hovered_component;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue