Skip to content

Commit

Permalink
Slide method stops autoplay.
Browse files Browse the repository at this point in the history
For consistency with the next/prev methods slide should also stop autoplay.
  • Loading branch information
i-like-robots committed Mar 18, 2013
1 parent 82a490e commit 8efa36b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions swipe.js
Original file line number Diff line number Diff line change
Expand Up @@ -398,13 +398,15 @@ function Swipe(container, options) {

},
slide: function(to, speed) {


// cancel slideshow
stop();

slide(to, speed);

},
prev: function() {

// cancel slideshow
stop();

prev();
Expand Down

0 comments on commit 8efa36b

Please sign in to comment.