HotFix: mobile scroll down

This commit is contained in:
José Luis Garrido Labrador
2018-10-22 11:52:22 +02:00
parent 9c361fa69e
commit 3c3f58040d

View File

@@ -142,11 +142,14 @@ function resetFilter(){
o=1;
$(window).scroll(function () {
if (Math.ceil($(window).scrollTop() + $(window).height())== Math.ceil($(document).height())) {
$(document.body).on('touchmove', onScroll());
$(windows).on('scroll', onScroll());
function onScroll() {
if (Math.ceil($(window).scrollTop() + $(window).height()) == Math.ceil($(document).height())) {
getAjax();
}
});
}
//From https://stackoverflow.com/questions/35297919/javascript-select-all-text-inside-a-pre-code-block-on-double-click
window.onload = function(){