summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack Byrne <jack.byrne@durham.ac.uk>2020-04-16 13:09:36 +0100
committerAndreas Kling <kling@serenityos.org>2020-04-16 14:13:03 +0200
commitf65c55791e9d340aa85da0eb52a619a11ded04dd (patch)
treee53b6291f3ce0be4506a02e8993ab6cfff8583b2
parent1642fdf82d986dcca09756290aa8cdb65cad373b (diff)
downloadserenity-f65c55791e9d340aa85da0eb52a619a11ded04dd.zip
LibWeb: Scroll back to the top when a new page is loaded
-rw-r--r--Libraries/LibWeb/HtmlView.cpp1
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)