Skip to content
This repository has been archived by the owner on May 10, 2018. It is now read-only.

Commit

Permalink
Merge pull request #315 from mauricio-delaquintana-tierconnect-com/ma…
Browse files Browse the repository at this point in the history
…ster

rn-swipe-disabled =true will only disable swipe events
  • Loading branch information
Julien Bouquillon committed Jun 8, 2015
2 parents 5d5673a + a6c0f1e commit 9f4e93d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dist/angular-carousel.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,14 +293,15 @@ angular.module('angular-carousel').run(['$templateCache', function($templateCach
mouseUpBound = false,
locked = false;

$swipe.bind(iElement, {
if(iAttributes.rnSwipeDisabled !== "true") { //rn-swipe-disabled =true will only disable swipe events
$swipe.bind(iElement, {
start: swipeStart,
move: swipeMove,
end: swipeEnd,
cancel: function(event) {
swipeEnd({}, event);
}
});
})};

function getSlidesDOM() {
return iElement[0].querySelectorAll('ul[rn-carousel] > li');
Expand Down

0 comments on commit 9f4e93d

Please sign in to comment.