mirror of
https://github.com/encounter/engine.git
synced 2026-03-30 11:09:55 -07:00
preventDefault on touchend to show iOS keyboard (#11390)
This commit is contained in:
@@ -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));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user