diff --git a/src/managers/continuous/index.js b/src/managers/continuous/index.js index 8d6b12f..138a1d5 100644 --- a/src/managers/continuous/index.js +++ b/src/managers/continuous/index.js @@ -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); } } diff --git a/src/managers/default/index.js b/src/managers/default/index.js index edf3344..b181fbf 100644 --- a/src/managers/default/index.js +++ b/src/managers/default/index.js @@ -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")) {