jquery – button is hovered after scrollBy

$(“button”).on(“click”, () => { console.log($(“button”).is(“:hover”)); window.scrollTo(0,0); console.log($(“button”).is(“:hover”)); })