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:
parent
10c6f062b3
commit
bf0b5c3c5a
2 changed files with 26 additions and 14 deletions
|
@ -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 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue