未验证 提交 ffe8c0b3 编写于 作者: Y Yegor 提交者: GitHub

preventDefault on touchend to show iOS keyboard (#11390)

上级 47b2d9b3
......@@ -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));
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册