Skip to content

Commit 42569cc

Browse files
committed
feat(doubletap): add onDoubleTap directive
Closes #2292
1 parent b7cd6cb commit 42569cc

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

js/angular/directive/gesture.js

+17-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
var GESTURE_DIRECTIVES = 'onHold onTap onTouch onRelease onDrag onDragUp onDragRight onDragDown onDragLeft onSwipe onSwipeUp onSwipeRight onSwipeDown onSwipeLeft'.split(' ');
1+
var GESTURE_DIRECTIVES = 'onHold onTap onDoubleTap onTouch onRelease onDrag onDragUp onDragRight onDragDown onDragLeft onSwipe onSwipeUp onSwipeRight onSwipeDown onSwipeLeft'.split(' ');
22

33
GESTURE_DIRECTIVES.forEach(function(name) {
44
IonicModule.directive(name, gestureDirective(name));
@@ -38,6 +38,22 @@ GESTURE_DIRECTIVES.forEach(function(name) {
3838
*/
3939

4040

41+
/**
42+
* @ngdoc directive
43+
* @name onDoubleTap
44+
* @module ionic
45+
* @restrict A
46+
*
47+
* @description
48+
* Double tap touch at a location.
49+
*
50+
* @usage
51+
* ```html
52+
* <button on-double-tap="onDoubleTap()" class="button">Test</button>
53+
* ```
54+
*/
55+
56+
4157
/**
4258
* @ngdoc directive
4359
* @name onTouch

0 commit comments

Comments
 (0)