@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 CHANGED
@@ -6385,9 +6385,9 @@ const progressionEnhancer = (next) => (options) => {
6385
6385
  totalProgress = getTotalProgressFromPercentages(estimateBeforeThisItem, currentItemWeight, progressWithinThisItem);
6386
6386
  }
6387
6387
  if (currentSpineIndex === readingOrderLength - 1 && pageIndex === numberOfPages - 1 && totalProgress > 0.99) {
6388
- return 100;
6388
+ return 1;
6389
6389
  }
6390
- return totalProgress * 100;
6390
+ return totalProgress;
6391
6391
  };
6392
6392
  const getTotalProgressFromPercentages = (estimateBeforeThisItem, currentItemWeight, progressWithinThisItem) => {
6393
6393
  return estimateBeforeThisItem + currentItemWeight * progressWithinThisItem;