I'm trying to create a feature where the user sees a menu that has 5 numbers, 1 - 5. 1 = slowest, and 5 = fastest, when someone clicks one of these numbers the page begins to scroll itself, making it so the person doesn't have to scroll the page. The problem i'm having is that I want to allow the person to still have access to their mousewheel, but when i use the mousewheel while the page is animating, it jerks the page down and then it jerks the page back to where it was and it continues animating but doesn't allow me to scroll down or back up and then animate from the new position i scrolled to with my mousewheel. Right now I have it so if I click the page while its scrolling, it stops, but i'm not including that in the final script, any help? THANKS!
$('html,body').animate({scrollTop: $(target).offset().top},430000)
$('html,body').click(function(){
$('html,body').stop()
})