1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-03 14:59:18 +02:00

Fix typos, remove console.log

This commit is contained in:
Fred Chasen 2020-05-15 11:02:58 -07:00
parent da430d6cb1
commit e539c38f7d
2 changed files with 7 additions and 8 deletions

View file

@ -265,7 +265,7 @@ class ContinuousViewManager extends DefaultViewManager {
}
};
//Horizontal negative scrooling
//Horizontal negative scrolling
if (horizontal && rtl && this.settings.rtlScrollType === "negative") {
if (offset - delta <= (-1 * contentLength)) {
@ -277,7 +277,7 @@ class ContinuousViewManager extends DefaultViewManager {
}
}
//default scrooling
//default scrolling
else {
if (offset + visibleLength + delta >= contentLength) {
if (horizontal && rtl) {
@ -374,8 +374,7 @@ class ContinuousViewManager extends DefaultViewManager {
else {
this.scrollTo(prevLeft + Math.floor(bounds.width), 0, true);
}
}
else {
} else {
this.scrollTo(prevLeft - Math.floor(bounds.width), 0, true);
}
}

View file

@ -497,7 +497,7 @@ class DefaultViewManager {
var prev;
var left;
let dir = this.settings.direction;
console.log(dir);
if(!this.views.length) return;
if(this.isPaginated && this.settings.axis === "horizontal" && (!dir || dir === "ltr")) {