File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -56,15 +56,19 @@ export class TapClick {
56
56
if ( this . startCoord ) {
57
57
return false ;
58
58
}
59
+ if ( ! this . app . isEnabled ( ) ) {
60
+ return false ;
61
+ }
62
+
63
+ this . lastTouchEnd = 0 ;
64
+ this . dispatchClick = true ;
59
65
60
66
let activatableEle = getActivatableTarget ( ev . target ) ;
61
67
if ( ! activatableEle ) {
62
68
this . startCoord = null ;
63
69
return false ;
64
70
}
65
71
66
- this . lastTouchEnd = 0 ;
67
- this . dispatchClick = true ;
68
72
this . startCoord = pointerCoord ( ev ) ;
69
73
this . activator && this . activator . downAction ( ev , activatableEle , this . startCoord ) ;
70
74
return true ;
@@ -102,6 +106,7 @@ export class TapClick {
102
106
103
107
pointerCancel ( ev : UIEvent ) {
104
108
console . debug ( `pointerCancel from ${ ev . type } ${ Date . now ( ) } ` ) ;
109
+
105
110
this . startCoord = null ;
106
111
this . dispatchClick = false ;
107
112
this . activator && this . activator . clearState ( ) ;
@@ -149,6 +154,10 @@ export class TapClick {
149
154
console . debug ( 'click prevent: appDisabled' ) ;
150
155
return true ;
151
156
}
157
+ if ( this . gestureCtrl . isCaptured ( ) ) {
158
+ console . debug ( 'click prevent: tap-click (gesture is captured)' ) ;
159
+ return true ;
160
+ }
152
161
return false ;
153
162
}
154
163
You can’t perform that action at this time.
0 commit comments