Improve progress bar rendering while dragging

This commit is contained in:
schroda
2024-12-28 02:00:13 +01:00
parent 347c88f240
commit 0c6872edb3
4 changed files with 12 additions and 5 deletions

View File

@@ -65,6 +65,7 @@ const BaseStandardReaderProgressBar = ({
isLeadingPage,
_,
totalPages_,
showDraggingStyle,
) => (
<ReaderProgressBarSlotDesktop
pageName={page.name}
@@ -76,10 +77,10 @@ const BaseStandardReaderProgressBar = ({
isFirstPage={pagesIndex === 0}
isLastPage={pagesIndex === totalPages_ - 1}
isLeadingPage={isLeadingPage}
isDragging={isDragging}
showDraggingStyle={showDraggingStyle}
/>
),
[progressBarPosition, isDragging],
[progressBarPosition],
)}
slotProps={{
container: {