mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(tap-click): null is not an object when scrolling after focusing an input on iOS
fixes #7964
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user