[Glitch] fix: Fix glitchy iOS media attachment drag interactions

Port 69f298731e to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
diondiondion
2025-06-16 17:37:04 +02:00
committed by Claire
parent cbdd4b68c7
commit 3731738aa0
3 changed files with 51 additions and 38 deletions

View File

@@ -22,10 +22,11 @@ import { useAppDispatch, useAppSelector } from 'flavours/glitch/store';
export const Upload: React.FC<{
id: string;
dragging?: boolean;
draggable?: boolean;
overlay?: boolean;
tall?: boolean;
wide?: boolean;
}> = ({ id, dragging, overlay, tall, wide }) => {
}> = ({ id, dragging, draggable = true, overlay, tall, wide }) => {
const dispatch = useAppDispatch();
const media = useAppSelector((state) =>
(
@@ -71,6 +72,7 @@ export const Upload: React.FC<{
<div
className={classNames('compose-form__upload media-gallery__item', {
dragging,
draggable,
overlay,
'media-gallery__item--tall': tall,
'media-gallery__item--wide': wide,