0
在我遇到的所有画布库中,我发现cgscenegraph是一个非常新的库。我一直在使用kineticjs和paperjs。我想为我当前的项目尝试cgscenegraph。 cgscenegraph是否支持多点触控? 有没有关于相同的演示。无法在theie网站上找到任何内容。cgscenegraph中的多点触控支持
在我遇到的所有画布库中,我发现cgscenegraph是一个非常新的库。我一直在使用kineticjs和paperjs。我想为我当前的项目尝试cgscenegraph。 cgscenegraph是否支持多点触控? 有没有关于相同的演示。无法在theie网站上找到任何内容。cgscenegraph中的多点触控支持
是它支持:选中此here
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));
}
}