Skip to content

Commit

Permalink
fix slidesPerPage pagination limit
Browse files Browse the repository at this point in the history
  • Loading branch information
citrus committed Mar 6, 2013
1 parent 5aeb283 commit f13605b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jquery.sliders.js
Expand Up @@ -349,8 +349,8 @@
var i = n < l ? n : l - (n % l);
i = i < 0 ? l + i : l <= i ? i - l : i;
if (options.slidesPerPage > 1 && options.transition == 'slide') {
var p = Math.round(l / options.slidesPerPage);
i = index == i ? 0 :i > p ? p : i;
var p = l - options.slidesPerPage;
i = index == i ? 0 : i > p ? p : i;
}
return i;
};
Expand Down

0 comments on commit f13605b

Please sign in to comment.