fix(app): scroll to comment on click

This commit is contained in:
adamelmore 2026-01-25 07:58:24 -06:00
commit 2b07291e17
No known key found for this signature in database
GPG key ID: 9CB48779AF150E75
3 changed files with 49 additions and 4 deletions

View file

@ -238,7 +238,7 @@ export const SessionReview = (props: SessionReviewProps) => {
const target = ready ? anchor : anchors.get(focus.file)
if (!target) {
if (attempt >= 24) return
if (attempt >= 120) return
requestAnimationFrame(() => scrollTo(attempt + 1))
return
}
@ -250,7 +250,7 @@ export const SessionReview = (props: SessionReviewProps) => {
root.scrollTop = Math.max(0, next)
if (ready) return
if (attempt >= 24) return
if (attempt >= 120) return
requestAnimationFrame(() => scrollTo(attempt + 1))
}