| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| 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 { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments