diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2021-09-08 11:22:44 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-09-11 15:51:05 +0100 |
commit | a09219159c9be273edf44155219f14aa6e9880dc (patch) | |
tree | a92312f2707759f55b0d8148f5d6ddfb7fdeef6a /Userland/Libraries/LibWeb/WebContentClient.h | |
parent | 92a3318375edb2058ac5d840eb7c16652c820998 (diff) | |
download | serenity-a09219159c9be273edf44155219f14aa6e9880dc.zip |
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.
Diffstat (limited to 'Userland/Libraries/LibWeb/WebContentClient.h')
-rw-r--r-- | Userland/Libraries/LibWeb/WebContentClient.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/WebContentClient.h b/Userland/Libraries/LibWeb/WebContentClient.h index 328b07a66b..a80f325303 100644 --- a/Userland/Libraries/LibWeb/WebContentClient.h +++ b/Userland/Libraries/LibWeb/WebContentClient.h @@ -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; |