Skip to content

Commit

Permalink
Merge pull request #86 from d-i-t-a/bugfix/regression-next-previous
Browse files Browse the repository at this point in the history
Bugfix/regression next previous
  • Loading branch information
aferditamuriqi authored Oct 26, 2020
2 parents ec4fba1 + b511936 commit 5bb1973
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 2 additions & 2 deletions src/navigator/IFrameNavigator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand All @@ -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"
Expand Down

0 comments on commit 5bb1973

Please sign in to comment.