1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 08:35:09 +00:00

LibWebView+Ladybird: Remove unused on_scroll_into_view callback

Leftover from 9624eca116
This commit is contained in:
Aliaksandr Kalenik 2023-12-21 15:00:11 +01:00 committed by Andreas Kling
parent 6032c06f6b
commit d87f3a4101
4 changed files with 0 additions and 33 deletions

View file

@ -99,16 +99,6 @@ WebContentView::WebContentView(WebContentOptions const& web_content_options, Str
verticalScrollBar()->setValue(position.y());
};
on_scroll_into_view = [this](auto rect) {
if (m_viewport_rect.contains(rect))
return;
if (rect.top() < m_viewport_rect.top())
verticalScrollBar()->setValue(rect.top());
else if (rect.top() > m_viewport_rect.top() && rect.bottom() > m_viewport_rect.bottom())
verticalScrollBar()->setValue(rect.bottom() - m_viewport_rect.height());
};
on_cursor_change = [this](auto cursor) {
update_cursor(cursor);
};