Is there a way to fire an actual mouse scroll event while auto scrolling?
I am using the following piece of code to emulate auto scrolling
setInterval(function scroll() {
for (var i = 0; i < 4000; i += 800) {
$("html, body").animate({
scrollTop: i
}, 500).delay(500);
}
I somehow want to call a mouse wheel scroll event each time an auto scroll occurs
$(window).on('wheel', function(event){
});