Skip to content

Commit 21eae2e

Browse files
committed
fix(tap-click): null is not an object when scrolling after focusing an input on iOS
fixes #7964
1 parent 1d6af90 commit 21eae2e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/alert/alert.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export class Alert extends ViewController {
115115
* In the array of `buttons`, each button includes properties for its `text`,
116116
* and optionally a `handler`. If a handler returns `false` then the alert
117117
* will not automatically be dismissed when the button is clicked. All
118-
* buttons will show up in the order they have been added to the `buttons`
118+
* buttons will show up in the order they have been added to the `buttons`
119119
* array, from left to right. Note: The right most button (the last one in
120120
* the array) is the main button.
121121
*

src/components/tap-click/tap-click.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export class TapClick {
4646
});
4747

4848
this.pointerMove = (ev: UIEvent) => {
49-
if ( hasPointerMoved(POINTER_MOVE_UNTIL_CANCEL, this.startCoord, pointerCoord(ev)) ) {
49+
if (!this.startCoord || hasPointerMoved(POINTER_MOVE_UNTIL_CANCEL, this.startCoord, pointerCoord(ev)) ) {
5050
this.pointerCancel(ev);
5151
}
5252
};

0 commit comments

Comments
 (0)