Skip to content

Commit

Permalink
Merge pull request thebird#229 from i-like-robots/patch-1
Browse files Browse the repository at this point in the history
Slide method stops autoplay.
  • Loading branch information
thebird committed Mar 18, 2013
2 parents 008e730 + ac3f93a commit cabaf6d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion swipe.js
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,10 @@ function Swipe(container, options) {

},
slide: function(to, speed) {


// cancel slideshow
stop();

slide(to, speed);

},
Expand All @@ -412,6 +415,7 @@ function Swipe(container, options) {
},
next: function() {

// cancel slideshow
stop();

next();
Expand Down

0 comments on commit cabaf6d

Please sign in to comment.