@d-i-t-a/reader 2.3.1 → 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 +2 -2
- package/dist/esm/index.js.map +2 -2
- package/dist/reader.js +1 -1
- package/dist/reader.js.map +2 -2
- package/package.json +1 -1
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.
|
|
51564
|
+
const pages = Math.ceil(scrollWidth / width);
|
|
51565
51565
|
return pages * width;
|
|
51566
51566
|
}
|
|
51567
51567
|
};
|