preventDefault on touchend to show iOS keyboard (flutter/engine#11390)

This commit is contained in:
Yegor 2019-08-22 17:35:07 -07:00 committed by GitHub
parent d04f2481e1
commit 2a764289e5

View File

@ -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));
});