Skip to content

A free, self-hostable news aggregator…

Fix initial scroll for some browsers (#7059)

aarneje9f392201006
diff --git a/p/scripts/main.js b/p/scripts/main.js
index 811af2f3e..f74e36553 100644
--- a/p/scripts/main.js
+++ b/p/scripts/main.js
@@ -2028,6 +2028,7 @@ function init_normal() {
}
function init_main_beforeDOM() {
+ history.scrollRestoration = 'manual';
document.scrollingElement.scrollTop = 0;
init_shortcuts();
if (['normal', 'reader', 'global'].indexOf(context.current_view) >= 0) {