Prevent native mobile menu on long press

This commit is contained in:
schroda
2025-05-30 22:20:26 +02:00
parent 29d0e3ae55
commit 1162f76472
3 changed files with 3 additions and 3 deletions

View File

@@ -112,7 +112,6 @@ export const ChapterCard = memo((props: IProps) => {
<Stack sx={{ pt: 1, px: 1 }}>
<Card
sx={{
touchCallout: 'none',
...applyStyles(mode === 'reader' && isActiveChapter, {
backgroundColor: 'primary.main',
}),
@@ -123,6 +122,7 @@ export const ChapterCard = memo((props: IProps) => {
to={Chapters.getReaderUrl(chapter)}
style={{
color: theme.palette.text[chapter.isRead ? 'disabled' : 'primary'],
userSelect: 'none',
}}
state={Chapters.getReaderOpenChapterLocationState(chapter, true)}
replace={mode === 'reader'}

View File

@@ -66,7 +66,7 @@ export const MangaGridCard = memo(
onClick={handleClick}
to={mangaLinkTo}
state={Mangas.createLocationState(manga, mode)}
sx={{ textDecoration: 'none', touchCallout: 'none' }}
sx={{ textDecoration: 'none', userSelect: 'none' }}
>
<Box
sx={{

View File

@@ -48,7 +48,7 @@ export const MangaListCard = memo(
onClick={handleClick}
{...longPressBind(() => popupState.open(optionButtonRef.current))}
sx={{
touchCallout: 'none',
userSelect: 'none',
'@media (hover: hover) and (pointer: fine)': {
'&:hover .manga-option-button': {
visibility: 'visible',