From f5f9a2ffe004a3f1bdd30ea241dce3a7af90955c Mon Sep 17 00:00:00 2001 From: Alexander Zinchuk Date: Mon, 24 Jan 2022 12:49:37 +0100 Subject: [PATCH] Reactions: Fix animation lag when closing context menu --- src/components/middle/message/ReactionAnimatedEmoji.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/middle/message/ReactionAnimatedEmoji.tsx b/src/components/middle/message/ReactionAnimatedEmoji.tsx index 09fb293e2..a4a5c5c73 100644 --- a/src/components/middle/message/ReactionAnimatedEmoji.tsx +++ b/src/components/middle/message/ReactionAnimatedEmoji.tsx @@ -70,6 +70,7 @@ const ReactionAnimatedEmoji: FC = ({ animationData={mediaDataCenterIcon} play noLoop + forceOnHeavyAnimation onLoad={markAnimationLoaded} onEnded={unmarkAnimationLoaded} /> @@ -81,6 +82,7 @@ const ReactionAnimatedEmoji: FC = ({ animationData={mediaDataEffect} play noLoop + forceOnHeavyAnimation onEnded={handleEnded} />