refactor(tap-click): remove duplicated method

This commit is contained in:
Manu Mtz.-Almeida
2018-03-29 16:17:33 +02:00
parent 74e4b323ac
commit 1f74d8dcd7

View File

@@ -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);