Skip to content

Commit

Permalink
Remove wrong variable - #321
Browse files Browse the repository at this point in the history
Signed-off-by: Robert Weber <[email protected]>
  • Loading branch information
rodebert committed Jan 14, 2016
1 parent 289cfe2 commit 46b1ce7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/js/unslider-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/js/unslider.js
Original file line number Diff line number Diff line change
Expand Up @@ -311,10 +311,10 @@
},

moveend: function(e) {

if((Math.abs(e.distX) / width) < $.event.special.swipe.settings.threshold) {

self[self.current + e.distX < 0 ? 'next' : 'prev']();
self[ e.distX < 0 ? 'next' : 'prev' ]();
}
}
});
Expand Down

0 comments on commit 46b1ce7

Please sign in to comment.