|
|
@ -262,7 +262,7 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
function cacheCurrentContent() { |
|
|
|
function cacheCurrentContent () { |
|
|
|
domCache[PUSH.id] = document.body.cloneNode(true); |
|
|
|
domCache[PUSH.id] = document.body.cloneNode(true); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -494,7 +494,11 @@ |
|
|
|
window.addEventListener('touchstart', function () { isScrolling = false; }); |
|
|
|
window.addEventListener('touchstart', function () { isScrolling = false; }); |
|
|
|
window.addEventListener('touchmove', function () { isScrolling = true; }); |
|
|
|
window.addEventListener('touchmove', function () { isScrolling = true; }); |
|
|
|
window.addEventListener('touchend', touchend); |
|
|
|
window.addEventListener('touchend', touchend); |
|
|
|
window.addEventListener('click', function (e) { if (getTarget(e)) {e.preventDefault();} }); |
|
|
|
window.addEventListener('click', function (e) { |
|
|
|
|
|
|
|
if (getTarget(e)) { |
|
|
|
|
|
|
|
e.preventDefault(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
window.addEventListener('popstate', popstate); |
|
|
|
window.addEventListener('popstate', popstate); |
|
|
|
window.PUSH = PUSH; |
|
|
|
window.PUSH = PUSH; |
|
|
|
|
|
|
|
|
|
|
|