mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
preventDefault on touchend to show iOS keyboard (#11390)
This commit is contained in:
parent
47b2d9b3d9
commit
ffe8c0b33d
@ -318,6 +318,9 @@ class TouchAdapter extends BaseAdapter {
|
||||
});
|
||||
|
||||
_addEventListener('touchend', (html.Event event) {
|
||||
// On Safari Mobile, the keyboard does not show unless this line is
|
||||
// added.
|
||||
event.preventDefault();
|
||||
_updateButtonDownState(_kPrimaryMouseButton, false);
|
||||
_callback(_convertEventToPointerData(ui.PointerChange.up, event));
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user