mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-18 16:21:52 +00:00
LibWeb: Scroll back to the top when a new page is loaded
This commit is contained in:
parent
1642fdf82d
commit
f65c55791e
Notes:
sideshowbarker
2024-07-19 07:33:21 +09:00
Author: https://github.com/jgbyrne 🔰
Commit: f65c55791e
Pull-request: https://github.com/SerenityOS/serenity/pull/1819
1 changed files with 1 additions and 0 deletions
|
@ -379,6 +379,7 @@ void HtmlView::load(const URL& url)
|
|||
[this, url](auto error) {
|
||||
load_error_page(url, error);
|
||||
});
|
||||
this->scroll_to_top();
|
||||
}
|
||||
|
||||
void HtmlView::load_error_page(const URL& failed_url, const String& error)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue