mirror of
https://gitlab.com/CodeSolutionsProject/CodeShare.git
synced 2026-02-14 09:01:33 +01:00
HotFix: mobile scroll down
This commit is contained in:
@@ -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(){
|
||||
|
||||
Reference in New Issue
Block a user