Shouldn't this be Date.now() - lastTimeScrolled? This seems to always evaluate to true.