Browse Source

LibWeb: Scroll back to the top when a new page is loaded

Jack Byrne 5 years ago
parent
commit
f65c55791e
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Libraries/LibWeb/HtmlView.cpp

+ 1 - 0
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)