mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 21:59:07 +00:00
LibWeb+WebContent: Modify did_request_scroll() IPC to take x&y deltas
This is in preparation for implementing JS scrolling functions, which specify both x and y scrolling deltas. The visible behavior has not changed. Also, moved the "mouse wheel delta * 20" calculation to the `EventHandler` since the JS calls will want to work directly in pixels.
This commit is contained in:
parent
92a3318375
commit
a09219159c
Notes:
sideshowbarker
2024-07-18 04:16:28 +09:00
Author: https://github.com/AtkinsSJ
Commit: a09219159c
Pull-request: https://github.com/SerenityOS/serenity/pull/9912
Reviewed-by: https://github.com/Lubrsi
Reviewed-by: https://github.com/davidot
Reviewed-by: https://github.com/linusg ✅
9 changed files with 13 additions and 12 deletions
|
@ -36,7 +36,7 @@ private:
|
|||
virtual void did_request_cursor_change(i32) override;
|
||||
virtual void did_layout(Gfx::IntSize const&) override;
|
||||
virtual void did_change_title(String const&) override;
|
||||
virtual void did_request_scroll(int) override;
|
||||
virtual void did_request_scroll(i32, i32) override;
|
||||
virtual void did_request_scroll_into_view(Gfx::IntRect const&) override;
|
||||
virtual void did_enter_tooltip_area(Gfx::IntPoint const&, String const&) override;
|
||||
virtual void did_leave_tooltip_area() override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue