Currently my program is in a spot where it both listens for the user to scroll a certain element, but also, at times, automatically scrolls this element by itself. (Not a gr
You could try storing the offset top of your element and matching it against the scrollTop when you step inside onScroll:
function onScroll(){
var scrollTop = (document.documentElement.scrollTop || document.body.scrollTop),
offsetTop = $('selector').offset().top;
if(offsetTop > scrollTop){
//user has not scrolled to element so do auto scrolling
}
}