Message / Custom Emoji: Fix ignoring heavy animation

This commit is contained in:
Alexander Zinchuk 2023-09-04 04:05:47 +02:00
parent cd1f293e4b
commit 25e6a8f72f
3 changed files with 3 additions and 3 deletions

View File

@ -73,7 +73,7 @@ type StateProps = {
shouldSkipHistoryAnimations?: boolean; shouldSkipHistoryAnimations?: boolean;
}; };
const ANIMATION_DURATION = 350; const ANIMATION_DURATION = 250;
const MediaViewer: FC<StateProps> = ({ const MediaViewer: FC<StateProps> = ({
chatId, chatId,

View File

@ -69,7 +69,7 @@ const AnimatedCustomEmoji: FC<OwnProps & StateProps> = ({
isBig isBig
noPlay={noPlay} noPlay={noPlay}
withSharedAnimation withSharedAnimation
forceOnHeavyAnimation forceOnHeavyAnimation={Boolean(effect && activeEmojiInteractions?.length)}
observeIntersectionForLoading={observeIntersection} observeIntersectionForLoading={observeIntersection}
onClick={handleClick} onClick={handleClick}
/> />

View File

@ -37,7 +37,7 @@ import StorySettings from './StorySettings';
import styles from './StoryViewer.module.scss'; import styles from './StoryViewer.module.scss';
const ANIMATION_DURATION = 350; const ANIMATION_DURATION = 250;
interface StateProps { interface StateProps {
isOpen: boolean; isOpen: boolean;