Ignore reading direction for vertical progress bar
The page change handling of the progress bar was inverted while RTL was the set readers reading direction. However, this is only relevant for the horizontal progress bar
This commit is contained in:
@@ -247,9 +247,6 @@ export const ReaderProgressBar = withPropsFrom(
|
||||
[
|
||||
useReaderProgressBarContext,
|
||||
() => ({ openPage: ReaderControls.useOpenPage() }),
|
||||
() => ({
|
||||
direction: ReaderService.useGetThemeDirection(),
|
||||
}),
|
||||
userReaderStatePagesContext,
|
||||
ReaderService.useSettingsWithoutDefaultFlag,
|
||||
],
|
||||
@@ -257,7 +254,6 @@ export const ReaderProgressBar = withPropsFrom(
|
||||
'isDragging',
|
||||
'setIsDragging',
|
||||
'openPage',
|
||||
'direction',
|
||||
'pages',
|
||||
'pageLoadStates',
|
||||
'totalPages',
|
||||
|
||||
@@ -182,6 +182,7 @@ const BaseMobileReaderProgressBar = ({
|
||||
)}
|
||||
</IconButton>
|
||||
<ReaderProgressBar
|
||||
direction={finalReaderDirection}
|
||||
progressBarPosition={finalProgressBarPosition}
|
||||
fullSegmentClicks={false}
|
||||
createProgressBarSlot={useCallback(
|
||||
|
||||
@@ -79,6 +79,7 @@ const BaseStandardReaderProgressBar = ({
|
||||
return (
|
||||
<ReaderProgressBarDirectionWrapper>
|
||||
<ReaderProgressBar
|
||||
direction={isHorizontal ? readerDirection : 'ltr'}
|
||||
progressBarPosition={finalProgressBarPosition}
|
||||
fullSegmentClicks
|
||||
createProgressBarSlot={useCallback(
|
||||
|
||||
Reference in New Issue
Block a user