mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-21 01:40:46 +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
Notes:
sideshowbarker
2024-07-19 03:10:48 +09:00
Author: https://github.com/nico
Commit: bf0b5c3c5a
Pull-request: https://github.com/SerenityOS/serenity/pull/3297
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