disable endless swiping on smartphones
Some checks failed
fetch npm modules / f0ck the f0cker (push) Failing after 0s
Some checks failed
fetch npm modules / f0ck the f0cker (push) Failing after 0s
This commit is contained in:
parent
7b56660cac
commit
2696c4aac4
@ -219,16 +219,6 @@ window.requestAnimFrame = (function(){
|
|||||||
elem = document.querySelector(".pagination > .prev:not(.disabled)");
|
elem = document.querySelector(".pagination > .prev:not(.disabled)");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
if(Math.abs(swipeRT.yDiff) > swipeOpt.treshold && timeDiff < swipeOpt.timeout) {
|
|
||||||
if(navbar = document.querySelector("nav.navbar") && document.querySelector("div.posts")) {
|
|
||||||
if(swipeRT.yDiff > 0 && (window.innerHeight + window.scrollY) >= document.body.offsetHeight) // up
|
|
||||||
elem = document.querySelector(".pagination > .next:not(.disabled)");
|
|
||||||
else if(swipeRT.yDiff <= 0 && window.scrollY <= 0 && document.querySelector("div.posts")) // down
|
|
||||||
elem = document.querySelector(".pagination > .prev:not(.disabled)");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
swipeRT.xDown = null;
|
swipeRT.xDown = null;
|
||||||
swipeRT.yDown = null;
|
swipeRT.yDown = null;
|
||||||
|
Loading…
Reference in New Issue
Block a user