[Perf] Message List: Do not animate sticky dates when focusing

This commit is contained in:
Alexander Zinchuk 2021-04-14 03:17:51 +03:00
parent cc3e5edf30
commit 8e94228f9f

View File

@ -283,7 +283,9 @@ const MessageList: FC<OwnProps & StateProps & DispatchProps> = ({
const container = containerRef.current!;
updateStickyDates(container, hasTools);
if (!memoFocusingIdRef.current) {
updateStickyDates(container, hasTools);
}
runDebouncedForScroll(() => {
fastRaf(() => {