diff --git a/Source/assets/js/functions.js b/Source/assets/js/functions.js index becc9a6..6f43575 100644 --- a/Source/assets/js/functions.js +++ b/Source/assets/js/functions.js @@ -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(){