Prevent native mobile menu on long press
This commit is contained in:
@@ -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'}
|
||||
|
||||
@@ -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={{
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user