mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
refactor(tap-click): remove duplicated method
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user