Skip to content

Commit

Permalink
feat(doubletap): add onDoubleTap directive
Browse files Browse the repository at this point in the history
Closes #2292
  • Loading branch information
adamdbradley committed Feb 12, 2015
1 parent b7cd6cb commit 42569cc
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion js/angular/directive/gesture.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var GESTURE_DIRECTIVES = 'onHold onTap onTouch onRelease onDrag onDragUp onDragRight onDragDown onDragLeft onSwipe onSwipeUp onSwipeRight onSwipeDown onSwipeLeft'.split(' ');
var GESTURE_DIRECTIVES = 'onHold onTap onDoubleTap onTouch onRelease onDrag onDragUp onDragRight onDragDown onDragLeft onSwipe onSwipeUp onSwipeRight onSwipeDown onSwipeLeft'.split(' ');

GESTURE_DIRECTIVES.forEach(function(name) {
IonicModule.directive(name, gestureDirective(name));
Expand Down Expand Up @@ -38,6 +38,22 @@ GESTURE_DIRECTIVES.forEach(function(name) {
*/


/**
* @ngdoc directive
* @name onDoubleTap
* @module ionic
* @restrict A
*
* @description
* Double tap touch at a location.
*
* @usage
* ```html
* <button on-double-tap="onDoubleTap()" class="button">Test</button>
* ```
*/


/**
* @ngdoc directive
* @name onTouch
Expand Down

0 comments on commit 42569cc

Please sign in to comment.