Javascript cgscenegraph中的多点触控支持

Javascript cgscenegraph中的多点触控支持,javascript,html,canvas,Javascript,Html,Canvas,在我遇到的所有canvas库中,我发现cgscenegraph是一个非常新的库。我一直在使用kineticjs和paperjs。我想为我当前的项目尝试cgscenegraph。cgscenegraph是否支持多点触摸? 是否有与此相关的演示。在IE站点上找不到任何内容。是,它受支持:检查此项 var touch = event; //if multi-touch, get all the positions if (event.targetTouches) {

在我遇到的所有canvas库中,我发现cgscenegraph是一个非常新的库。我一直在使用kineticjs和paperjs。我想为我当前的项目尝试cgscenegraph。cgscenegraph是否支持多点触摸?
是否有与此相关的演示。在IE站点上找不到任何内容。

是,它受支持:检查此项

var touch = event;
//if multi-touch, get all the positions
if (event.targetTouches) { // or changedTouches
var touchPoints = (typeof event.targetTouches !== 'undefined') ? event.targetTouches : [event];
for (var i = 0; i < touchPoints.length; i++) {
touch = touchPoints[i];

positions.push(new CGSGPosition((touch.pageX - offsetX) / cgsgDisplayRatio.x,
(touch.pageY - offsetY) / cgsgDisplayRatio.y));
}
}