Canvas drag and drop with touch
I created drag and drop but touchstart don't work.
var cl = this.cl;
createjs.Touch.enable(stage);
cl.addEventListener("touchstart", onTouch.bind(cl));
function onTouch(e) {
thisCl.addChild(activeCl);
canvas.addEventListener('touchmove', moveTouch);
canvas.addEventListener("touchend", mUp);
}
function mUp() {
canvas.removeEventListener('mousemove', move);
canvas.addEventListener('touchmove', moveTouch);
}
function move() {
cl.x = stage.mouseX;
cl.y = stage.mouseY;
}