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:
parent
da430d6cb1
commit
e539c38f7d
2 changed files with 7 additions and 8 deletions
|
@ -265,8 +265,8 @@ class ContinuousViewManager extends DefaultViewManager {
|
|||
}
|
||||
|
||||
};
|
||||
//Horizontal negative scrooling
|
||||
if (horizontal && rtl && this.settings.rtlScrollType === "negative") {
|
||||
//Horizontal negative scrolling
|
||||
if (horizontal && rtl && this.settings.rtlScrollType === "negative") {
|
||||
|
||||
if (offset - delta <= (-1 * contentLength)) {
|
||||
append();
|
||||
|
@ -277,7 +277,7 @@ class ContinuousViewManager extends DefaultViewManager {
|
|||
}
|
||||
|
||||
}
|
||||
//default scrooling
|
||||
//default scrolling
|
||||
else {
|
||||
if (offset + visibleLength + delta >= contentLength) {
|
||||
if (horizontal && rtl) {
|
||||
|
@ -367,15 +367,14 @@ class ContinuousViewManager extends DefaultViewManager {
|
|||
if(this.settings.axis === "vertical") {
|
||||
this.scrollTo(0, prevTop - bounds.height, true);
|
||||
} else {
|
||||
if(this.settings.direction === 'rtl') {
|
||||
if(this.settings.direction === 'rtl') {
|
||||
if (this.settings.rtlScrollType === "default") {
|
||||
this.scrollTo(prevLeft, 0, true);
|
||||
this.scrollTo(prevLeft, 0, true);
|
||||
}
|
||||
else {
|
||||
this.scrollTo(prevLeft + Math.floor(bounds.width), 0, true);
|
||||
}
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
this.scrollTo(prevLeft - Math.floor(bounds.width), 0, true);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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")) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue