Skip to content

Commit

Permalink
fix continuous for no-transitions browsers
Browse files Browse the repository at this point in the history
  • Loading branch information
alicelieutier committed Apr 8, 2013
1 parent e88e6c4 commit 45d63f6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions swipe.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ function Swipe(container, options) {
if (options.continuous) move(circle(to - direction), -(width * direction), 0); // we need to get the next in place

} else {

to = circle(to);
animate(index * -width, to * -width, slideSpeed || speed);
//no fallback for a circular continuous if the browser does not accept transitions
}
Expand Down

0 comments on commit 45d63f6

Please sign in to comment.