@adactive/arc-carousel-asia
Advanced tools
Comparing version 2.3.0 to 2.3.1
{ | ||
"name": "@adactive/arc-carousel-asia", | ||
"version": "2.3.0", | ||
"version": "2.3.1", | ||
"description": "Adsum Carousel Component", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -149,17 +149,2 @@ // @flow | ||
if(autoSlide){ | ||
if(setTimeoutSlide!==null) {clearTimeout(setTimeoutSlide)}; | ||
if(id === (this.carousel.state.slideCount-1)){ | ||
this.setState({ | ||
setTimeoutSlide: setTimeout(() => { this.carousel.goToSlide(0); }, autoSlideInterval), | ||
}) | ||
} else { | ||
this.setState({ | ||
setTimeoutSlide: setTimeout(() => { this.carousel.goToSlide(id+1); }, autoSlideInterval), | ||
}) | ||
} | ||
} | ||
if (!isOpen) return; | ||
@@ -169,2 +154,17 @@ | ||
this.playVideo(id); | ||
} else { | ||
if(autoSlide){ | ||
if(setTimeoutSlide!==null) {clearTimeout(setTimeoutSlide)}; | ||
if(id === (this.carousel.state.slideCount-1)){ | ||
this.setState({ | ||
setTimeoutSlide: setTimeout(() => { this.carousel.goToSlide(0); }, autoSlideInterval), | ||
}) | ||
} else { | ||
this.setState({ | ||
setTimeoutSlide: setTimeout(() => { this.carousel.goToSlide(id+1); }, autoSlideInterval), | ||
}) | ||
} | ||
} | ||
} | ||
@@ -171,0 +171,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22179
527