diff --git a/public/s/js/comments.js b/public/s/js/comments.js index 73b21d7..b208ddf 100644 --- a/public/s/js/comments.js +++ b/public/s/js/comments.js @@ -4768,7 +4768,7 @@ class CommentSystem { picker.style.animation = ''; trigger.classList.add('is-active'); requestAnimationFrame(() => requestAnimationFrame(() => - window.scrollTo({ top: document.body.scrollHeight, behavior: 'smooth' }) + picker.scrollIntoView({ behavior: 'smooth', block: 'nearest' }) )); } return; @@ -4833,7 +4833,7 @@ class CommentSystem { container.appendChild(picker); requestAnimationFrame(() => requestAnimationFrame(() => - window.scrollTo({ top: document.body.scrollHeight, behavior: 'smooth' }) + picker.scrollIntoView({ behavior: 'smooth', block: 'nearest' }) )); });