mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-11 00:15:46 +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();
|
app.replaceSelfLinks();
|
||||||
|
|
||||||
setTimeout(function () {
|
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);
|
}, 100);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user