我在浏览器中找到了这个小提琴来测试触摸支持。http://jsfiddle.net/J3TV8/97/
$(document).on("touchstart touchmove touchend touchcancel", function(ev) {
$.each(ev.originalEvent.touches, function (i, t) { logtouch(ev.type + "-touches", t); });
$.each(ev.originalEvent.changedTouches, function (i, t) { logtouch(ev.type + "-changed", t); });
$.each(ev.originalEvent.targetTouches, function (i, t) { logtouch(ev.type + "-target", t); });
});我在上面的链接中删除了mousemove,mouseclick,mousedown和mouseup事件,这样我就可以测试触摸事件而不受其他事件的干扰。
上面的小提琴显示了一些铬文本,但在Mozilla和IE11中没有任何效果。
用于触摸支持的MDN链接:事件
我也尝试过上面的MDN链接,但是没有在小提琴中触发触摸事件的痕迹。
当我检查caniuse.com http://caniuse.com/#feat=touch时,支持表显示带有标志的红色火狐。但是MDN链接没有提到任何。
有没有办法识别火狐和ie11 ?中的多点触点。因为我增加了对我的小部件的支持。我不知道如何在这些浏览器中识别多点触摸。
编辑:火狐版本为47.0.1
https://stackoverflow.com/questions/38144733
复制相似问题