Prevent reader progressbar tooltips on mobile
This commit is contained in:
@@ -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}
|
||||||
|
|||||||
@@ -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}
|
||||||
|
|||||||
Reference in New Issue
Block a user