diff --git a/src/components/alert/alert.ts b/src/components/alert/alert.ts index 13eb6d4f03d..05a03b13e8e 100644 --- a/src/components/alert/alert.ts +++ b/src/components/alert/alert.ts @@ -115,7 +115,7 @@ export class Alert extends ViewController { * In the array of `buttons`, each button includes properties for its `text`, * and optionally a `handler`. If a handler returns `false` then the alert * will not automatically be dismissed when the button is clicked. All - * buttons will show up in the order they have been added to the `buttons` + * buttons will show up in the order they have been added to the `buttons` * array, from left to right. Note: The right most button (the last one in * the array) is the main button. * diff --git a/src/components/tap-click/tap-click.ts b/src/components/tap-click/tap-click.ts index 245ca2bad85..a5d4c7ccf80 100644 --- a/src/components/tap-click/tap-click.ts +++ b/src/components/tap-click/tap-click.ts @@ -46,7 +46,7 @@ export class TapClick { }); this.pointerMove = (ev: UIEvent) => { - if ( hasPointerMoved(POINTER_MOVE_UNTIL_CANCEL, this.startCoord, pointerCoord(ev)) ) { + if (!this.startCoord || hasPointerMoved(POINTER_MOVE_UNTIL_CANCEL, this.startCoord, pointerCoord(ev)) ) { this.pointerCancel(ev); } };