From 7679690f57ad5a5d874a519d0ede9588a48bde9e Mon Sep 17 00:00:00 2001 From: Donovan Crewe Date: Tue, 12 May 2015 15:47:30 -0500 Subject: [PATCH] feat(gestures): add dragstart and dragend gestures --- js/angular/directive/gesture.js | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/js/angular/directive/gesture.js b/js/angular/directive/gesture.js index 9528d3bfbde..ea4921a0d43 100644 --- a/js/angular/directive/gesture.js +++ b/js/angular/directive/gesture.js @@ -1,4 +1,4 @@ -var GESTURE_DIRECTIVES = 'onHold onTap onDoubleTap onTouch onRelease onDrag onDragUp onDragRight onDragDown onDragLeft onSwipe onSwipeUp onSwipeRight onSwipeDown onSwipeLeft'.split(' '); +var GESTURE_DIRECTIVES = 'onHold onTap onDoubleTap onTouch onRelease onDragStart onDrag onDragEnd onDragUp onDragRight onDragDown onDragLeft onSwipe onSwipeUp onSwipeRight onSwipeDown onSwipeLeft'.split(' '); GESTURE_DIRECTIVES.forEach(function(name) { IonicModule.directive(name, gestureDirective(name)); @@ -86,6 +86,21 @@ GESTURE_DIRECTIVES.forEach(function(name) { * ``` */ +/** + * @ngdoc directive + * @name onDragStart + * @module ionic + * @restrict A + * + * @description + * Called when a drag gesture has started. + * + * @usage + * ```html + * + * ``` + */ + /** * @ngdoc directive @@ -104,6 +119,20 @@ GESTURE_DIRECTIVES.forEach(function(name) { * ``` */ +/** + * @ngdoc directive + * @name onDragEnd + * @module ionic + * @restrict A + * + * @description + * Called when a drag gesture has ended. + * + * @usage + * ```html + * + * ``` + */ /** * @ngdoc directive