mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 12:57:42 +08:00
Merge pull request #969 from NativeScript/feature/inatant-tap-event
Fire tap event on tap up without waiting
This commit is contained in:
@ -186,7 +186,7 @@ class TapAndDoubleTapGestureListener extends android.view.GestureDetector.Simple
|
|||||||
return global.__native(this);
|
return global.__native(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
public onSingleTapConfirmed(motionEvent: android.view.MotionEvent): boolean {
|
public onSingleTapUp(motionEvent: android.view.MotionEvent): boolean {
|
||||||
if (this._type & definition.GestureTypes.tap) {
|
if (this._type & definition.GestureTypes.tap) {
|
||||||
var args = _getArgs(definition.GestureTypes.tap, this._target, motionEvent);
|
var args = _getArgs(definition.GestureTypes.tap, this._target, motionEvent);
|
||||||
_executeCallback(this._observer, args);
|
_executeCallback(this._observer, args);
|
||||||
|
Reference in New Issue
Block a user