Sticker: Prevent dragging (#2363)
This commit is contained in:
parent
e5537cbbc0
commit
84bfe0c8fc
@ -33,15 +33,12 @@
|
|||||||
border-radius: var(--custom-emoji-border-radius) !important;
|
border-radius: var(--custom-emoji-border-radius) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlightCatch {
|
.highlight-catch {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
user-select: auto !important;
|
user-select: auto !important;
|
||||||
}
|
z-index: 1;
|
||||||
|
|
||||||
.altEmoji {
|
|
||||||
opacity: 0;
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -10,14 +10,14 @@
|
|||||||
&:global(.closing) {
|
&:global(.closing) {
|
||||||
transition-delay: 150ms;
|
transition-delay: 150ms;
|
||||||
}
|
}
|
||||||
|
|
||||||
&_opaque {
|
|
||||||
background: var(--thumbs-background);
|
|
||||||
transition-delay: 0s;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.noTransition {
|
.thumb-opaque {
|
||||||
|
background: var(--thumbs-background);
|
||||||
|
transition-delay: 0s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.no-transition {
|
||||||
transition: none !important;
|
transition: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -132,11 +132,12 @@ const StickerView: FC<OwnProps> = ({
|
|||||||
className={buildClassName(
|
className={buildClassName(
|
||||||
styles.thumb,
|
styles.thumb,
|
||||||
noTransition && styles.noTransition,
|
noTransition && styles.noTransition,
|
||||||
isThumbOpaque && styles.thumb_opaque,
|
isThumbOpaque && styles.thumbOpaque,
|
||||||
thumbClassName,
|
thumbClassName,
|
||||||
thumbClassNames,
|
thumbClassNames,
|
||||||
)}
|
)}
|
||||||
alt=""
|
alt=""
|
||||||
|
draggable={false}
|
||||||
/>
|
/>
|
||||||
{isLottie ? (
|
{isLottie ? (
|
||||||
<AnimatedSticker
|
<AnimatedSticker
|
||||||
@ -178,6 +179,7 @@ const StickerView: FC<OwnProps> = ({
|
|||||||
className={buildClassName(styles.media, fullMediaClassName, fullMediaClassNames)}
|
className={buildClassName(styles.media, fullMediaClassName, fullMediaClassNames)}
|
||||||
src={fullMediaData}
|
src={fullMediaData}
|
||||||
alt={emoji}
|
alt={emoji}
|
||||||
|
draggable={false}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</>
|
</>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user