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));
}
}