I'm trying to implement infinite-scroll on an imageboard but the scrollThreshold event is triggered with minimal scrollbar movements no matter if it's going up or down. Since I couldn't figure out the issue (it happens only on this one website in specific for some reason) I tried using the html node element instead but the threshold isn't met neither on the website where I'm testing my userscript nor on the codepen I used to isolate the problem.
Test case: https://codepen.io/leewdch/pen/QWEENrW
I'm trying to implement infinite-scroll on an imageboard but the
scrollThreshold
event is triggered with minimal scrollbar movements no matter if it's going up or down. Since I couldn't figure out the issue (it happens only on this one website in specific for some reason) I tried using thehtml
node element instead but the threshold isn't met neither on the website where I'm testing my userscript nor on the codepen I used to isolate the problem.Any clue of what is going on?