From d6609a7bb1a9ed6f2f0d8321ef99b08c43d16ec1 Mon Sep 17 00:00:00 2001 From: btpf Date: Tue, 29 Nov 2022 12:46:06 -0500 Subject: [PATCH 1/2] Fix Continuous Scroll Bug Fixed bug related to following issues: https://github.com/futurepress/epub.js/issues/1295 https://github.com/futurepress/epub.js/issues/1303 --- src/managers/helpers/stage.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/managers/helpers/stage.js b/src/managers/helpers/stage.js index d0f67e6..726c8c1 100644 --- a/src/managers/helpers/stage.js +++ b/src/managers/helpers/stage.js @@ -47,6 +47,7 @@ class Stage { container.style.lineHeight = "0"; container.style.verticalAlign = "top"; container.style.position = "relative"; + container.style.overflowAnchor = "none"; if(axis === "horizontal") { // container.style.whiteSpace = "nowrap"; From b6ccddec3764b4068922d0020d34bf0d7f00f243 Mon Sep 17 00:00:00 2001 From: btpf Date: Fri, 17 Feb 2023 13:42:45 -0500 Subject: [PATCH 2/2] Fix Continuous Manager Scroll Bug Fixes the issue of the scroll bar not working if the rendition is resized while an image is present and using continuous manager --- src/managers/continuous/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/managers/continuous/index.js b/src/managers/continuous/index.js index d61f8f7..de14b6a 100644 --- a/src/managers/continuous/index.js +++ b/src/managers/continuous/index.js @@ -60,7 +60,7 @@ class ContinuousViewManager extends DefaultViewManager { var full = _full || new defer(); this.q.enqueue(() => { - return this.check(); + return this.check.bind(this); }).then((result) => { if (result) { this.fill(full);