From 1f74d8dcd745c8ede6be0e2d4351329ec5fe224b Mon Sep 17 00:00:00 2001 From: "Manu Mtz.-Almeida" Date: Thu, 29 Mar 2018 16:17:33 +0200 Subject: [PATCH] refactor(tap-click): remove duplicated method --- core/src/components/tap-click/tap-click.tsx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/core/src/components/tap-click/tap-click.tsx b/core/src/components/tap-click/tap-click.tsx index 185e33d96c..a5567c9863 100644 --- a/core/src/components/tap-click/tap-click.tsx +++ b/core/src/components/tap-click/tap-click.tsx @@ -36,12 +36,7 @@ export class TapClick { this.pointerDown(ev); } - @Listen('document:touchcancel', { passive: true, capture: true }) - onTouchCancel(ev: TouchEvent) { - this.lastTouch = now(ev); - this.pointerUp(ev); - } - + @Listen('document:touchcancel', { passive: false, capture: true }) @Listen('document:touchend', { passive: false, capture: true }) onTouchEnd(ev: TouchEvent) { this.lastTouch = now(ev);