diff --git a/aqt/reviewer.py b/aqt/reviewer.py index ffc239888..4c17c7596 100644 --- a/aqt/reviewer.py +++ b/aqt/reviewer.py @@ -134,7 +134,8 @@ function _updateQA (q, answerMode, klass) { typeans.focus(); } if (answerMode) { - window.location = "#answer"; + var e = $("#answer"); + if (e[0]) { e[0].scrollIntoView(); } } else { window.scrollTo(0, 0); }