Add comment

This commit is contained in:
Robin
2023-09-19 07:04:43 -04:00
parent b3ef5ac929
commit d1c9c4b331

View File

@@ -67,6 +67,8 @@ export function Modal({
...rest
}: ModalProps) {
const { t } = useTranslation();
// Empirically, Chrome on Android can end up not matching (hover: none), but
// still matching (pointer: coarse) :/
const touchscreen = useMediaQuery("(hover: none) or (pointer: coarse)");
const onOpenChange = useCallback(
(open: boolean) => {