Open jfojfo opened 8 years ago
only deal with input and textarea
// in PointerEventUnifier:
element.addEventListener("touchstart", function(e) {
...
var tagName = e.target.tagName.toLowerCase();
if (tagName !== 'input' && tagName !== 'textarea' || e.target.hasAttribute('readonly')) {
e.preventDefault();
}
}, false);
element.addEventListener("touchend", function(e) {
...
var tagName = e.target.tagName.toLowerCase();
if (tagName !== 'input' && tagName !== 'textarea' || e.target.hasAttribute('readonly')) {
e.preventDefault();
}
}, false);
fixed many problems in my branch, see https://github.com/jfojfo/zebra
if comment out e.preventDefault() or change it to e.stopPropagation() in PointerEventUnifier, keyborad will show normally.
testing code follows: