mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
LibWeb: Handle scrolling an OutOfProcessWebView
When a mousewheel scroll event isn't handled by the web content itself (e.g. an overflowed box or similar), the event needs to get passed back up to the OutOfProcessWebView.
This commit is contained in:
committed by
Andreas Kling
parent
e9c1d9c89a
commit
0e881bc5d7
Notes:
sideshowbarker
2024-07-18 21:46:36 +09:00
Author: https://github.com/angus-g Commit: https://github.com/SerenityOS/serenity/commit/0e881bc5d72 Pull-request: https://github.com/SerenityOS/serenity/pull/5554 Issue: https://github.com/SerenityOS/serenity/issues/5515
@@ -95,6 +95,11 @@ void WebContentClient::handle(const Messages::WebContentClient::DidChangeTitle&
|
||||
m_view.notify_server_did_change_title({}, message.title());
|
||||
}
|
||||
|
||||
void WebContentClient::handle(const Messages::WebContentClient::DidRequestScroll& message)
|
||||
{
|
||||
m_view.notify_server_did_request_scroll({}, message.wheel_delta());
|
||||
}
|
||||
|
||||
void WebContentClient::handle(const Messages::WebContentClient::DidRequestScrollIntoView& message)
|
||||
{
|
||||
dbgln_if(SPAM_DEBUG, "handle: WebContentClient::DidRequestScrollIntoView! rect={}", message.rect());
|
||||
|
||||
Reference in New Issue
Block a user