mirror of
https://gitlab.com/CodeSolutionsProject/CodeShare.git
synced 2026-02-15 17:41:33 +01:00
HotFix: mobile scroll down
This commit is contained in:
@@ -142,11 +142,14 @@ function resetFilter(){
|
|||||||
|
|
||||||
o=1;
|
o=1;
|
||||||
|
|
||||||
$(window).scroll(function () {
|
$(document.body).on('touchmove', onScroll());
|
||||||
if (Math.ceil($(window).scrollTop() + $(window).height())== Math.ceil($(document).height())) {
|
$(windows).on('scroll', onScroll());
|
||||||
|
|
||||||
|
function onScroll() {
|
||||||
|
if (Math.ceil($(window).scrollTop() + $(window).height()) == Math.ceil($(document).height())) {
|
||||||
getAjax();
|
getAjax();
|
||||||
}
|
}
|
||||||
});
|
}
|
||||||
|
|
||||||
//From https://stackoverflow.com/questions/35297919/javascript-select-all-text-inside-a-pre-code-block-on-double-click
|
//From https://stackoverflow.com/questions/35297919/javascript-select-all-text-inside-a-pre-code-block-on-double-click
|
||||||
window.onload = function(){
|
window.onload = function(){
|
||||||
|
|||||||
Reference in New Issue
Block a user