fix(tap-click): null is not an object when scrolling after focusing an input on iOS

fixes #7964
This commit is contained in:
Manu Mtz.-Almeida
2016-10-01 12:42:10 +02:00
parent 1d6af900ba
commit 21eae2e58a
2 changed files with 2 additions and 2 deletions

View File

@@ -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.
*

View File

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