Firefox 和 ie11 中的多点触控支持

Multi-Touch support in firefox and ie11

我发现这个 fiddle 是为了测试我的浏览器对触控的支持。 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 事件 link 这样我就可以在不受其他事件干扰的情况下测试触摸事件

以上 fiddle 在 chrome 中显示了一些文本,但在 Mozilla firefox 和 IE11 中没有任何效果。

MDN link 触摸支持:https://developer.mozilla.org/en-US/docs/Web/API/Touch_events

我也试过上面的 MDN link 但是 fiddle

中没有触摸事件触发的痕迹

当我检查 caniuse.com http://caniuse.com/#feat=touch 时,支持 table 显示带有标志的红色 firefox。但是 MDN link 没有提到任何内容。

在firefox和ie11中有没有办法识别多点触控?。因为我正在为我的小部件添加捏合支持。我不确定如何在这些浏览器中识别多点触控。

编辑: Firefox 版本为 47.0.1

IE11支持pointer events. Pointer events处理所有类型的输入(触摸、鼠标、笔等)。

Firefox 尚未正式支持多点触控(在撰写此答案时)。但是我们可以使用他们的夜间构建来测试触摸交互。默认情况下 Pointer Events and touch events 在 nightly 中被禁用。我们应该通过 about:config 页面

启用它们

Note: Changing settings using about:config might void your warranty so do it at your own risk