From 09247f12376eb1b9eac2377589468436c25c9c18 Mon Sep 17 00:00:00 2001 From: Jamie Sutherland Date: Thu, 13 Nov 2014 12:33:07 +0000 Subject: [PATCH] fix(slideBox): allow disable dragging on slide boxes Fixes #2436. Closes #2457. $ionicSlideBoxDelegate.enableSlide(false) was not working due to a missing onDragStart function being passed to the ionicAttachDrag service --- js/angular/controller/slideBoxController.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/angular/controller/slideBoxController.js b/js/angular/controller/slideBoxController.js index 26e2342558c..a347bee9289 100644 --- a/js/angular/controller/slideBoxController.js +++ b/js/angular/controller/slideBoxController.js @@ -24,6 +24,7 @@ function(scope, element, $$ionicAttachDrag, $interval) { $$ionicAttachDrag(scope, element, { getDistance: function() { return slidesParent.prop('offsetWidth'); }, + onDragStart: onDragStart, onDrag: onDrag, onDragEnd: onDragEnd });