commit
5e0ffda6c5
|
@ -68,7 +68,7 @@
|
||||||
const scroll_treshold = 1;
|
const scroll_treshold = 1;
|
||||||
if([...document.querySelectorAll("div.posts")].length === 1) {
|
if([...document.querySelectorAll("div.posts")].length === 1) {
|
||||||
document.addEventListener("wheel", e => {
|
document.addEventListener("wheel", e => {
|
||||||
if(Math.ceil(window.innerHeight + window.scrollY) >= document.body.offsetHeight && e.deltaY > 0) { // down
|
if(Math.ceil(window.innerHeight + window.scrollY) >= document.querySelector('#main').offsetHeight && e.deltaY > 0) { // down
|
||||||
if(elem = document.querySelector(".pagination > .next:not(.disabled)")) {
|
if(elem = document.querySelector(".pagination > .next:not(.disabled)")) {
|
||||||
if(tts < scroll_treshold) {
|
if(tts < scroll_treshold) {
|
||||||
document.querySelector("div#footbar").style.boxShadow = "inset 0px 4px 0px var(--footbar-color)";
|
document.querySelector("div#footbar").style.boxShadow = "inset 0px 4px 0px var(--footbar-color)";
|
||||||
|
|
Loading…
Reference in New Issue
Block a user