3 ms·
I haven't looked at the code, but it may be by scrolling the window so it goes out of view and then setting up the fixed menus etc. I am totally guessing based
by fendale 17y ago
I haven't looked at the code, but it may be by scrolling the window so it goes out of view and then setting up the fixed menus etc.
I am totally guessing based on the comment in the article that if you double tap the top of the screen it brings the address bar into view, sort of implying it was just scrolled away.
- andreyf 17y agoLooks like you're spot on, good call. I'd misunderstood the other comment, as you only have to tap the top of the screen once to scroll to the top. I wonder if they could just capture and prevent onscroll? PKUtils.disableScrolling = function (a) { a.stopPropagation(); window.addEventListener("touchmove", PKUtils.preventEventDefault, true); window.addEventListener("touchend", PKUtils.restoreScrollingBehavior, true); window.addEventListener("touchcancel", PKUtils.restoreScrollingBehavior, true) };