From a5265779275ae51727beba2870c8f99a64e91687 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Thu, 22 Jan 2015 15:08:23 -0500 Subject: [PATCH] only attempt to remove address bar if current position is at the top of screen --- public/src/app.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/src/app.js b/public/src/app.js index d7097f91e7..e24e2500dd 100644 --- a/public/src/app.js +++ b/public/src/app.js @@ -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); };