Prevent reader progressbar tooltips on mobile

This commit is contained in:
schroda
2025-11-28 23:30:10 +01:00
parent 860b00a0b5
commit b5d71adeae
2 changed files with 2 additions and 0 deletions

View File

@@ -29,6 +29,7 @@ export const ReaderProgressBarCurrentPageSlot = ({
tooltip: { sx: { backgroundColor: 'primary.main', color: 'primary.contrastText' } }, tooltip: { sx: { backgroundColor: 'primary.main', color: 'primary.contrastText' } },
}} }}
placement={READER_PROGRESS_BAR_POSITION_TO_PLACEMENT[progressBarPosition]} placement={READER_PROGRESS_BAR_POSITION_TO_PLACEMENT[progressBarPosition]}
disableTouchListener
> >
<Box <Box
{...boxProps} {...boxProps}

View File

@@ -19,6 +19,7 @@ export const ReaderProgressBarSlot = memo(
{...slotProps?.tooltip} {...slotProps?.tooltip}
title={pageName} title={pageName}
placement={READER_PROGRESS_BAR_POSITION_TO_PLACEMENT[progressBarPosition]} placement={READER_PROGRESS_BAR_POSITION_TO_PLACEMENT[progressBarPosition]}
disableTouchListener
> >
<Box {...slotProps?.box} sx={{ width: '100%', height: '100%', ...slotProps?.box?.sx }}> <Box {...slotProps?.box} sx={{ width: '100%', height: '100%', ...slotProps?.box?.sx }}>
{children} {children}