Added: Scroll to answer

This commit is contained in:
Luc Mcgrady 2025-11-22 16:12:55 +00:00
parent d3afb41bda
commit 6a251464b2
No known key found for this signature in database
GPG key ID: 4F3D7A0B17CC3D9C

View file

@ -92,6 +92,13 @@ addEventListener("message", async (e: MessageEvent<InnerReviewerRequest>) => {
})
.catch(renderError("MathJax"));
const scrollTarget = document.getElementById("answer");
if (scrollTarget) {
scrollTarget.scrollIntoView();
} else {
window.scrollTo(0, 0);
}
_runHook(onShownHook);
break;
}