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

View File

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

View File

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