Is this what you are looking for? I re-wrote the code just a bit. Also I'm not sure if you were calling scale()
from somewhere else but that was not defined in your fiddle and was breaking your script
$(document).ready(function() {
$('a').click(function(e){
e.preventDefault();
var target= $(this).attr("href");
$target=$(target);
$('html,body').animate({scrollTop:$target.offset().top},900,'swing');
});
});
$(window).on("mousewheel", function(e){
e.preventDefault();
});