diff --git a/package-lock.json b/package-lock.json index 53a6749a..1c6b6df8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@d-i-t-a/reader", - "version": "1.3.0", + "version": "1.3.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 52ca1e51..6cc614ca 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@d-i-t-a/reader", - "version": "1.3.0", + "version": "1.3.1", "description": "A viewer application for EPUB files.", "repository": "https://github.com/d-i-t-a/R2D2BC", "license": "Apache-2.0", diff --git a/src/navigator/IFrameNavigator.ts b/src/navigator/IFrameNavigator.ts index a17911f1..e43ed619 100644 --- a/src/navigator/IFrameNavigator.ts +++ b/src/navigator/IFrameNavigator.ts @@ -551,7 +551,7 @@ export default class IFrameNavigator implements Navigator { } this.saveCurrentReadingPosition(); - if (this.reflowable && this.reflowable.atEnd()) { + if (this.reflowable.atEnd()) { // Bring up the bottom nav when you get to the bottom, // if it wasn't already displayed. if (!this.isDisplayed(this.linksBottom)) { @@ -567,7 +567,7 @@ export default class IFrameNavigator implements Navigator { this.toggleDisplay(this.linksBottom); } } - if(this.reflowable.isPaginated()) { + if(this.reflowable.isScrollmode()) { if (this.reflowable.atStart() && this.reflowable.atEnd()) { if (this.nextChapterBottomAnchorElement) this.nextChapterBottomAnchorElement.style.display = "unset" if (this.previousChapterTopAnchorElement) this.previousChapterTopAnchorElement.style.display = "unset"