File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
tns-core-modules/ui/gestures Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -68,13 +68,20 @@ function initializeTapAndDoubleTapGestureListener() {
68
68
}
69
69
70
70
private _handleSingleTap ( motionEvent : android . view . MotionEvent ) : void {
71
- this . _tapTimeoutId = timer . setTimeout ( ( ) => {
71
+ if ( this . _target . getGestureObservers ( GestureTypes . doubleTap ) ) {
72
+ this . _tapTimeoutId = timer . setTimeout ( ( ) => {
73
+ if ( this . _type & GestureTypes . tap ) {
74
+ const args = _getArgs ( GestureTypes . tap , this . _target , motionEvent ) ;
75
+ _executeCallback ( this . _observer , args ) ;
76
+ }
77
+ timer . clearTimeout ( this . _tapTimeoutId ) ;
78
+ } , TapAndDoubleTapGestureListenerImpl . DoubleTapTimeout ) ;
79
+ } else {
72
80
if ( this . _type & GestureTypes . tap ) {
73
81
const args = _getArgs ( GestureTypes . tap , this . _target , motionEvent ) ;
74
82
_executeCallback ( this . _observer , args ) ;
75
83
}
76
- timer . clearTimeout ( this . _tapTimeoutId ) ;
77
- } , TapAndDoubleTapGestureListenerImpl . DoubleTapTimeout ) ;
84
+ }
78
85
}
79
86
80
87
private _handleDoubleTap ( motionEvent : android . view . MotionEvent ) : void {
You can’t perform that action at this time.
0 commit comments