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

LibGUI: Extract ScrollBar::component_at_position() method

...and use it in mousedown_event(), which allows putting in
stricter asserts.
This commit is contained in:
Nico Weber 2020-08-25 10:31:20 -04:00 committed by Andreas Kling
parent 10c6f062b3
commit bf0b5c3c5a
2 changed files with 26 additions and 14 deletions

View file

@ -102,6 +102,8 @@ private:
void scroll_to_position(const Gfx::IntPoint&);
void scroll_by_page(const Gfx::IntPoint&);
Component component_at_position(const Gfx::IntPoint&);
int m_min { 0 };
int m_max { 0 };
int m_page { 0 };