I want to detect if i am scrolling but only after I\'ve scrolled a certain distance from my current location. When I stop scrolling, this distance resets to the current location
I didn't understand why you need this, but below is the code for your pseudo code:
var currentScrolled = 0;
$(document).scroll(function () {
currentScrolled = $(this).scrollTop();
if (currentScrolled > 10) {
console.log('it worked');
} else {
console.log('You have not scrolled far enough!')
}});
$(document).scrollstop(function(){
currentScrolled = 0;
});