Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

mandatory bug fix

  • Loading branch information...
commit 94b3b3df366625a3cc5171a12e07690a15f2f806 1 parent 568ec5c
@cubiq authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/swipeview.js
View
4 src/swipeview.js
@@ -183,7 +183,7 @@ var SwipeView = (function(){
},
next: function () {
- if (this.x == this.maxX) return;
+ if (!this.options.loop && this.x == this.maxX) return;
this.directionX = -1;
this.x -= 1;
@@ -191,7 +191,7 @@ var SwipeView = (function(){
},
prev: function () {
- if (this.x == 0) return;
+ if (!this.options.loop && this.x == 0) return;
this.directionX = 1;
this.x += 1;
Please sign in to comment.
Something went wrong with that request. Please try again.