Skip to content

Commit

Permalink
Added option for swipeToSlide to the Angular Wrapper.
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown authored and unknown committed Oct 16, 2014
1 parent 2725c25 commit f242c2f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dist/slick.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ angular.module('slick', []).directive('slick', [
slidesToScroll: '@',
speed: '@',
swipe: '@',
swipeToSlide: '@',
touchMove: '@',
touchThreshold: '@',
vertical: '@',
Expand Down Expand Up @@ -96,6 +97,7 @@ angular.module('slick', []).directive('slick', [
slidesToScroll: scope.slidesToScroll != null ? parseInt(scope.slidesToScroll, 10) : 1,
speed: scope.speed != null ? parseInt(scope.speed, 10) : 300,
swipe: scope.swipe !== 'false',
swipeToSlide: scope.swipeToSlide !== 'false',
touchMove: scope.touchMove !== 'false',
touchThreshold: scope.touchThreshold ? parseInt(scope.touchThreshold, 10) : 5,
vertical: scope.vertical === 'true'
Expand Down

0 comments on commit f242c2f

Please sign in to comment.