Message / Custom Emoji: Fix ignoring heavy animation
This commit is contained in:
parent
cd1f293e4b
commit
25e6a8f72f
@ -73,7 +73,7 @@ type StateProps = {
|
||||
shouldSkipHistoryAnimations?: boolean;
|
||||
};
|
||||
|
||||
const ANIMATION_DURATION = 350;
|
||||
const ANIMATION_DURATION = 250;
|
||||
|
||||
const MediaViewer: FC<StateProps> = ({
|
||||
chatId,
|
||||
|
||||
@ -69,7 +69,7 @@ const AnimatedCustomEmoji: FC<OwnProps & StateProps> = ({
|
||||
isBig
|
||||
noPlay={noPlay}
|
||||
withSharedAnimation
|
||||
forceOnHeavyAnimation
|
||||
forceOnHeavyAnimation={Boolean(effect && activeEmojiInteractions?.length)}
|
||||
observeIntersectionForLoading={observeIntersection}
|
||||
onClick={handleClick}
|
||||
/>
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user