Message Meta: Remove fast click as it conflicts with outer handlers
This commit is contained in:
parent
f56d893135
commit
8d4d9c4822
@ -22,13 +22,13 @@ import { useIsIntersecting } from '../../hooks/useIntersectionObserver';
|
||||
import useMedia from '../../hooks/useMedia';
|
||||
import useThumbnail from '../../hooks/useThumbnail';
|
||||
import useLang from '../../hooks/useLang';
|
||||
import { useFastClick } from '../../hooks/useFastClick';
|
||||
|
||||
import ActionMessage from '../middle/ActionMessage';
|
||||
import MessageSummary from './MessageSummary';
|
||||
import MediaSpoiler from './MediaSpoiler';
|
||||
|
||||
import './EmbeddedMessage.scss';
|
||||
import { useFastClick } from '../../hooks/useFastClick';
|
||||
|
||||
type OwnProps = {
|
||||
className?: string;
|
||||
|
||||
@ -18,7 +18,6 @@ import MessageOutgoingStatus from '../../common/MessageOutgoingStatus';
|
||||
import AnimatedCounter from '../../common/AnimatedCounter';
|
||||
|
||||
import './MessageMeta.scss';
|
||||
import { useFastClick } from '../../../hooks/useFastClick';
|
||||
|
||||
type OwnProps = {
|
||||
message: ApiMessage;
|
||||
@ -54,8 +53,6 @@ const MessageMeta: FC<OwnProps> = ({
|
||||
const lang = useLang();
|
||||
const [isActivated, markActivated] = useFlag();
|
||||
|
||||
const { handleClick, handleMouseDown } = useFastClick(onClick);
|
||||
|
||||
function handleImportedClick(e: React.MouseEvent) {
|
||||
e.stopPropagation();
|
||||
|
||||
@ -102,8 +99,7 @@ const MessageMeta: FC<OwnProps> = ({
|
||||
<span
|
||||
className={fullClassName}
|
||||
dir={lang.isRtl ? 'rtl' : 'ltr'}
|
||||
onClick={handleClick}
|
||||
onMouseDown={handleMouseDown}
|
||||
onClick={onClick}
|
||||
data-ignore-on-paste
|
||||
>
|
||||
{isTranslated && (
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user