Merge pull request #969 from NativeScript/feature/inatant-tap-event

Fire tap event on tap up without waiting
This commit is contained in:
Alexander Vakrilov
2015-10-21 16:29:37 +03:00

View File

@ -186,7 +186,7 @@ class TapAndDoubleTapGestureListener extends android.view.GestureDetector.Simple
return global.__native(this);
}
public onSingleTapConfirmed(motionEvent: android.view.MotionEvent): boolean {
public onSingleTapUp(motionEvent: android.view.MotionEvent): boolean {
if (this._type & definition.GestureTypes.tap) {
var args = _getArgs(definition.GestureTypes.tap, this._target, motionEvent);
_executeCallback(this._observer, args);