preventDefault on touchend to show iOS keyboard (#11390)

This commit is contained in:
Yegor
2019-08-22 17:35:07 -07:00
committed by GitHub
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));
});