Message List: Fix dissappearing UI in Safari (#1395)

This commit is contained in:
Alexander Zinchuk 2021-08-16 21:22:10 +03:00
parent b485a247dc
commit ec590b5118

View File

@ -146,9 +146,9 @@ const Transition: FC<OwnProps> = ({
}
function onAnimationEnd() {
if (activeIndex !== currentIndexRef.current) return;
requestAnimationFrame(() => {
if (activeIndex !== currentIndexRef.current) return;
container.classList.remove('animating', 'backwards');
childNodes.forEach((node, i) => {