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;
};
const ANIMATION_DURATION = 350;
const ANIMATION_DURATION = 250;
const MediaViewer: FC<StateProps> = ({
chatId,

View File

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

View File

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