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>