I have this piece of code which does a smooth scroll to a tag with an ID.
$('html, body').animate({
scrollTop: $($this.attr("href")).offset().top - (menuWrapper.height() + 25)
}, 750);
It works but when it reacts the location and you try to scroll up or down it fights you until 750 milliseconds is reached.
How can I prevent this from happening.