mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-01 15:18:06 +00:00
LibWeb: Adjust the scroll offset when the scrollbar gutter is clicked
This allows clicking on the scrollbar gutter to scroll to the offset indicated by the mouse position.
This commit is contained in:
parent
a135ce528e
commit
4cd186f3f5
Notes:
github-actions[bot]
2025-04-22 15:30:02 +00:00
Author: https://github.com/trflynn89
Commit: 4cd186f3f5
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4417
2 changed files with 56 additions and 31 deletions
|
@ -283,6 +283,7 @@ private:
|
|||
virtual DispatchEventOfSameName handle_mousemove(Badge<EventHandler>, CSSPixelPoint, unsigned buttons, unsigned modifiers) override;
|
||||
|
||||
bool scrollbar_contains_mouse_position(ScrollDirection, CSSPixelPoint);
|
||||
void scroll_to_mouse_postion(CSSPixelPoint);
|
||||
|
||||
OwnPtr<StackingContext> m_stacking_context;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue