Skip to content

Commit 8c628cb

Browse files
committed
Remove unnecessary requestAnimationFrame
1 parent 8296135 commit 8c628cb

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/pages/inbox/report/ReportActionsList.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -552,10 +552,7 @@ function ReportActionsList({
552552
}
553553
} else {
554554
setIsFloatingMessageCounterVisible(false);
555-
// Wait for the next frame so the list has laid out new items before scrolling
556-
requestAnimationFrame(() => {
557-
reportScrollManager.scrollToBottom();
558-
});
555+
reportScrollManager.scrollToBottom();
559556
}
560557

561558
setIsScrollToBottomEnabled(true);

0 commit comments

Comments
 (0)