I'm trying to detect continuing scrolling at the bottom of the page.
The page shows more information when reached at the end of the page but I want to show that when people scroll more at the end.
I can detect the end of the scroll, but I want to detect if people are continuing to scroll.
<!-- language: lang-js -->
function scrolling() {
let scrollView = document.getElementById('field-scroll');
if ($(scrollView).scrollTop() + $(scrollView).innerHeight() >= $(scrollView)[0].scrollHeight) {
alert('end of the bottom. but I want to show it when doing more scroll not immediately');
}
}
<div id='field-scroll' onscroll='scrolling()'>
...
</div>
Thank you for your help.