Skip to content

Commit

Permalink
added event stop in arrow controls
Browse files Browse the repository at this point in the history
  • Loading branch information
felipe-pereira committed Feb 19, 2016
1 parent b02a721 commit 6c79496
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dist/angular-carousel.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ angular.module('angular-carousel')
angular.module('angular-carousel').run(['$templateCache', function($templateCache) {
$templateCache.put('carousel-controls.html',
'<div class="rn-carousel-controls">\n' +
' <span class="rn-carousel-control rn-carousel-control-prev" ng-click="prev()" ng-if="items.length > 1 && (index > 0 || loop)"></span>\n' +
' <span class="rn-carousel-control rn-carousel-control-next" ng-click="next()" ng-if="items.length > 1 && (index < items.length - 1 || loop)"></span>\n' +
' <span class="rn-carousel-control rn-carousel-control-prev" ng-click="prev();$event.stopPropagation();" ng-if="items.length > 1 && (index > 0 || loop)"></span>\n' +
' <span class="rn-carousel-control rn-carousel-control-next" ng-click="next();$event.stopPropagation();" ng-if="items.length > 1 && (index < items.length - 1 || loop)"></span>\n' +
'</div>'
);
}]);
Expand Down

0 comments on commit 6c79496

Please sign in to comment.