Automatic "Scroll to top" after a topic finishes loading
-
After loading a topic, sometime (really often) the page scrolls to top automatically even if I navigate to a post anchor. It is really annoying and I noticed that it happens also in this forum. Reviewing the core code I saw the guilty lines:
app.processPage = function () { ... setTimeout(function () { window.scrollTo(0, 1); // rehide address bar on mobile after page load completes. }, 100); };
File:
public/src/app.js:241
I suppose those lines should only be executed on a mobile (Well, the 'scroll to top' could happen too)
Example: https://community.nodebb.org/topic/180/who-is-using-nodebb/110
That link should scroll directly to the #110 post, and it does, but right after, scroll to the top of the page.
Copyright © 2024 NodeBB | Contributors