Capturing Views AJAX pager click
In ajax view, by default this functionality is already there. When you click on ajax pager it will automatically scroll to top of content. If it is not working check your console for is there any error showing.