File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ export class AutomaticSliderShowWebcomponent extends BaseCustomWebComponentConst
9292
9393 private _dots : HTMLDivElement ;
9494 private _slideIndex = 0 ;
95- private _interval : number = 2000 ;
95+ private _interval : number = 0 ;
9696 private _timeoutId : any ;
9797 private _observer : MutationObserver ;
9898
@@ -166,8 +166,10 @@ export class AutomaticSliderShowWebcomponent extends BaseCustomWebComponentConst
166166
167167 this . _slideIndex ++ ;
168168 // console.log(this._slideIndex);
169- clearTimeout ( this . _timeoutId ) ;
170- this . _timeoutId = setTimeout ( ( ) => this . _showSlides ( ) , this . _interval ) ;
169+ if ( this . _interval != 0 ) {
170+ clearTimeout ( this . _timeoutId ) ;
171+ this . _timeoutId = setTimeout ( ( ) => this . _showSlides ( ) , this . _interval ) ;
172+ }
171173 }
172174
173175 prevSlide ( ) {
You can’t perform that action at this time.
0 commit comments