mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 16:05:49 +01:00
only attempt to remove address bar if current position is at the top of screen
This commit is contained in:
@@ -254,7 +254,9 @@ app.uid = null;
|
||||
app.replaceSelfLinks();
|
||||
|
||||
setTimeout(function () {
|
||||
window.scrollTo(0, 1); // rehide address bar on mobile after page load completes.
|
||||
if (window.scrollY === 0) {
|
||||
window.scrollTo(0, 1); // rehide address bar on mobile after page load completes.
|
||||
}
|
||||
}, 100);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user