@prose-reader/core 1.54.0 → 1.55.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +2 -2
- package/dist/index.umd.cjs.map +1 -1
- package/package.json +3 -3
package/dist/index.umd.cjs
CHANGED
|
@@ -6386,9 +6386,9 @@
|
|
|
6386
6386
|
totalProgress = getTotalProgressFromPercentages(estimateBeforeThisItem, currentItemWeight, progressWithinThisItem);
|
|
6387
6387
|
}
|
|
6388
6388
|
if (currentSpineIndex === readingOrderLength - 1 && pageIndex === numberOfPages - 1 && totalProgress > 0.99) {
|
|
6389
|
-
return
|
|
6389
|
+
return 1;
|
|
6390
6390
|
}
|
|
6391
|
-
return totalProgress
|
|
6391
|
+
return totalProgress;
|
|
6392
6392
|
};
|
|
6393
6393
|
const getTotalProgressFromPercentages = (estimateBeforeThisItem, currentItemWeight, progressWithinThisItem) => {
|
|
6394
6394
|
return estimateBeforeThisItem + currentItemWeight * progressWithinThisItem;
|