@d-i-t-a/reader 2.5.1 → 2.5.3
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 +8 -1
- package/dist/esm/index.js.map +2 -2
- package/dist/reader.js +1 -1
- package/dist/reader.js.map +3 -3
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -70965,6 +70965,8 @@ var ReflowableBookView = class {
|
|
|
70965
70965
|
if (html) {
|
|
70966
70966
|
html.style.setProperty("--USER__scroll", "readium-scroll-on");
|
|
70967
70967
|
}
|
|
70968
|
+
const spacer = doc.getElementById("r2d2bc-column-spacer");
|
|
70969
|
+
if (spacer) spacer.remove();
|
|
70968
70970
|
}
|
|
70969
70971
|
this.setSize();
|
|
70970
70972
|
this.setIframeHeight(this.iframe);
|
|
@@ -70984,7 +70986,6 @@ var ReflowableBookView = class {
|
|
|
70984
70986
|
}
|
|
70985
70987
|
}
|
|
70986
70988
|
this.setSize();
|
|
70987
|
-
this.padOddColumns();
|
|
70988
70989
|
}
|
|
70989
70990
|
if (this.navigator.rights.enableContentProtection) {
|
|
70990
70991
|
this.navigator.contentProtectionModule?.recalculate();
|
|
@@ -87174,6 +87175,9 @@ var IFrameNavigator = class _IFrameNavigator extends eventemitter3_default {
|
|
|
87174
87175
|
this.view?.goToCssSelector(startContainer);
|
|
87175
87176
|
}
|
|
87176
87177
|
} else if (bookViewPosition && bookViewPosition >= 0) {
|
|
87178
|
+
if (this.view?.layout !== "fixed") {
|
|
87179
|
+
this.view?.padOddColumns?.();
|
|
87180
|
+
}
|
|
87177
87181
|
this.view?.goToProgression(bookViewPosition);
|
|
87178
87182
|
}
|
|
87179
87183
|
this.newPosition = void 0;
|
|
@@ -88329,6 +88333,9 @@ var IFrameNavigator = class _IFrameNavigator extends eventemitter3_default {
|
|
|
88329
88333
|
this.newElementId = locator.locations.fragment;
|
|
88330
88334
|
this.currentTocUrl = this.currentChapterLink.href + "#" + this.newElementId;
|
|
88331
88335
|
}
|
|
88336
|
+
if (this.view?.layout !== "fixed") {
|
|
88337
|
+
this.view?.padOddColumns?.();
|
|
88338
|
+
}
|
|
88332
88339
|
if (this.newElementId) {
|
|
88333
88340
|
for (const iframe of this.iframes) {
|
|
88334
88341
|
const element = iframe.contentDocument.getElementById(
|