Situation: google custom search - when you click on the transition to the next page in the search results, the page does not scroll up to the end (it's probably Google’s bug), I try to do it myself using jquery
$(document).ready(function(){ $(".gsc-cursor-page").click(function () { $('html, body').animate({scrollTop:0}, 'fast'); }); });
.gsc-cursor-page - div in which the page navigation is located, specifically the page number.
but it completely does not want to do scrolling in this situation, perhaps because Google has its own task when clicking on this div, and my task is completely ignored. Moreover, if you hang an event on the click of any other element (also diva), then everything works fine.
Patient here
.animate()
, which will be re-doing the same animation? - Specter