@d-i-t-a/reader 2.3.0 → 2.3.2

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/esm/index.js CHANGED
@@ -51384,7 +51384,7 @@ var ReflowableBookView = class {
51384
51384
  return Math.ceil(this.scrollingElement.scrollHeight - wrapper.scrollTop) - 1 <= getHeight();
51385
51385
  } else {
51386
51386
  const rightWidth = Math.floor(this.getRightColumnsWidth());
51387
- return rightWidth <= 0;
51387
+ return rightWidth <= 0 || Math.ceil(this.getCurrentPage()) === this.getPageCount();
51388
51388
  }
51389
51389
  }
51390
51390
  goToPreviousPage() {
@@ -51561,7 +51561,7 @@ var ReflowableBookView = class {
51561
51561
  get scrollWidth() {
51562
51562
  const scrollWidth = this.scrollingElement?.scrollWidth;
51563
51563
  const width = this.getColumnWidth();
51564
- const pages = Math.floor(scrollWidth / width);
51564
+ const pages = Math.ceil(scrollWidth / width);
51565
51565
  return pages * width;
51566
51566
  }
51567
51567
  };
@@ -58765,7 +58765,7 @@ var ContentProtectionModule = class {
58765
58765
  }
58766
58766
  if (letters) {
58767
58767
  words = words.map(function(word) {
58768
- return scramble(word.split("")).join("");
58768
+ return word.includes("-") ? word : scramble(word.split("")).join("");
58769
58769
  });
58770
58770
  }
58771
58771
  return paragraph ? scramble(words).join(" ") : words.join(" ");