4 ms·
Looks 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
by andreyf 17y ago
Looks 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)
};