Skip to content

Commit

Permalink
fix(slideBox): allow disable dragging on slide boxes
Browse files Browse the repository at this point in the history
Fixes #2436. Closes #2457.

$ionicSlideBoxDelegate.enableSlide(false) was not working due to a missing onDragStart function being passed to the ionicAttachDrag service
  • Loading branch information
wedgybo authored and ajoslin committed Nov 13, 2014
1 parent 1a295f1 commit 09247f1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/angular/controller/slideBoxController.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ function(scope, element, $$ionicAttachDrag, $interval) {

$$ionicAttachDrag(scope, element, {
getDistance: function() { return slidesParent.prop('offsetWidth'); },
onDragStart: onDragStart,
onDrag: onDrag,
onDragEnd: onDragEnd
});
Expand Down

0 comments on commit 09247f1

Please sign in to comment.