native-carousel
Advanced tools
Comparing version 1.0.5 to 1.0.6
{ | ||
"name": "native-carousel", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "Native JavaScript simple carousel", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -53,4 +53,4 @@ /* | ||
const [prevBtn, nextBtn] = this.buttons; | ||
prevBtn.addEventListener('click', incrementMoveTo(-1)); | ||
nextBtn.addEventListener('click', incrementMoveTo(+1)); | ||
if (prevBtn) prevBtn.addEventListener('click', incrementMoveTo(-1)); | ||
if (nextBtn) nextBtn.addEventListener('click', incrementMoveTo(+1)); | ||
@@ -64,3 +64,3 @@ // drag | ||
clearInterval(this.animationInterval); | ||
this.animationInterval = setInterval(() => this.currentSlide++, 2000); | ||
this.animationInterval = setInterval(() => this.currentSlide++, this.animateDelay); | ||
} | ||
@@ -67,0 +67,0 @@ |
Sorry, the diff of this file is not supported yet
7036
227