Message / Custom Emoji: Fix ignoring heavy animation
This commit is contained in:
parent
cd1f293e4b
commit
25e6a8f72f
@ -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,
|
||||||
|
|||||||
@ -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}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user