how to call javaScript function if user is not scrolling a div with id scrollingDiv. this is how i thought
function isScrolling() {
if(<<isScrollingDiv>>) {
alert('Scrolling');
} else {
userNotScrolling();
}
isScrolling();
<div style="overflow:scroll" id="scrollingDiv">SomeContent</div>
userNotScrollingand then user will scroll div?isScrollingDiv = false; set it totrue, if user scroll div (you can use code by @Goliadkin); then check this variable in yourisScrolling