Skip to content

Commit

Permalink
fix(tap-click): null is not an object when scrolling after focusing a…
Browse files Browse the repository at this point in the history
…n input on iOS

fixes #7964
  • Loading branch information
manucorporat committed Oct 1, 2016
1 parent 1d6af90 commit 21eae2e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/alert/alert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
2 changes: 1 addition & 1 deletion src/components/tap-click/tap-click.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
};
Expand Down

0 comments on commit 21eae2e

Please sign in to comment.