diff options
author | Jack Byrne <jack.byrne@durham.ac.uk> | 2020-04-16 13:09:36 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-04-16 14:13:03 +0200 |
commit | f65c55791e9d340aa85da0eb52a619a11ded04dd (patch) | |
tree | e53b6291f3ce0be4506a02e8993ab6cfff8583b2 | |
parent | 1642fdf82d986dcca09756290aa8cdb65cad373b (diff) | |
download | serenity-f65c55791e9d340aa85da0eb52a619a11ded04dd.zip |
LibWeb: Scroll back to the top when a new page is loaded
-rw-r--r-- | Libraries/LibWeb/HtmlView.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Libraries/LibWeb/HtmlView.cpp b/Libraries/LibWeb/HtmlView.cpp index 34f45597ba..245f371fca 100644 --- a/Libraries/LibWeb/HtmlView.cpp +++ b/Libraries/LibWeb/HtmlView.cpp @@ -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) |