Skip to content

Commit 2a91f51

Browse files
committed
Fix the Pause functionality
Currently the pause only works if an animation is already going on. One would usually use the pause function to stop the slider from continuing to autoplay.
1 parent fa94079 commit 2a91f51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/jquery.slitslider.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@
588588
// public method: pauses the slideshow
589589
pause : function() {
590590

591-
if( this.isPlaying ) {
591+
if( this.isPlaying || this.options.autoplay) {
592592

593593
this._stopSlideshow();
594594

0 commit comments

Comments
 (0)