mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:58:11 +00:00
LibWeb+WebContent: Add WebContentClient::did_request_scroll_to() call
This call sets the absolute scroll position for the window.
This commit is contained in:
parent
a09219159c
commit
83414af9f3
8 changed files with 21 additions and 0 deletions
|
@ -73,6 +73,11 @@ void WebContentClient::did_request_scroll(i32 x_delta, i32 y_delta)
|
|||
m_view.notify_server_did_request_scroll({}, x_delta, y_delta);
|
||||
}
|
||||
|
||||
void WebContentClient::did_request_scroll_to(Gfx::IntPoint const& scroll_position)
|
||||
{
|
||||
m_view.notify_server_did_request_scroll_to({}, scroll_position);
|
||||
}
|
||||
|
||||
void WebContentClient::did_request_scroll_into_view(Gfx::IntRect const& rect)
|
||||
{
|
||||
dbgln_if(SPAM_DEBUG, "handle: WebContentClient::DidRequestScrollIntoView! rect={}", rect);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue