diff options
author | Andrew Dolgov <[email protected]> | 2023-04-11 07:19:49 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2023-04-11 07:19:49 +0300 |
commit | 8ce9ca1d928bda4b2721dfda03dbf2831b12626c (patch) | |
tree | be881bed89d6cb977d4f68aeaa28cd0af9b9728d /lib/epub.js/src/managers/continuous/index.js | |
parent | a72807a9b1c4d6b6688b86abd4b7b71feaea3ca0 (diff) |
bump epubjs to 0.3.93
Diffstat (limited to 'lib/epub.js/src/managers/continuous/index.js')
-rw-r--r-- | lib/epub.js/src/managers/continuous/index.js | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/epub.js/src/managers/continuous/index.js b/lib/epub.js/src/managers/continuous/index.js index e6a9e61..d61f8f7 100644 --- a/lib/epub.js/src/managers/continuous/index.js +++ b/lib/epub.js/src/managers/continuous/index.js @@ -21,7 +21,9 @@ class ContinuousViewManager extends DefaultViewManager { width: undefined, height: undefined, snap: false, - afterScrolledTimeout: 10 + afterScrolledTimeout: 10, + allowScriptedContent: false, + allowPopups: false }); extend(this.settings, options.settings || {}); @@ -38,7 +40,9 @@ class ContinuousViewManager extends DefaultViewManager { layout: this.layout, width: 0, height: 0, - forceEvenPages: false + forceEvenPages: false, + allowScriptedContent: this.settings.allowScriptedContent, + allowPopups: this.settings.allowPopups }; this.scrollTop = 0; @@ -380,7 +384,7 @@ class ContinuousViewManager extends DefaultViewManager { } else { if(this.settings.direction === 'rtl') { if (!this.settings.fullsize) { - this.scrollTo(prevLeft, 0, true); + this.scrollTo(prevLeft, 0, true); } else { this.scrollTo(prevLeft + Math.floor(bounds.width), 0, true); } |