mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
preventDefault on touchend to show iOS keyboard (flutter/engine#11390)
This commit is contained in:
parent
d04f2481e1
commit
2a764289e5
@ -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