Drag & Drop not working properly on iPad (canvas/html5)
i want create simple drag & drop exercise, on ipad "drag & drop" not working properly.
here code:
var = this;
createjs.touch.enable(stage);
stage.enablemouseover(10);
function initpage() {
var shape = new createjs.shape();
shape.graphics.beginfill("#999999").drawroundrect(100,100,140,60,8).endfill();
shape.on("mousedown", function(evt) {
this.alpha = 0.8;
this.offset = {x: this.x - evt.stagex, y: this.y - evt.stagey};
});
shape.on("pressmove", function(evt) {
this.x = evt.stagex + this.offset.x;
this.y = evt.stagey + this.offset.y;
});
shape.on("pressup", function(evt) {
this.alpha = 1;
});
that.addchild(shape);
}
initpage();
i can drag shape, more move it, more moves away finger. here video recorded:
https://dl.dropboxusercontent.com/u/11697167/animatecc-bug.mp4
any ideas wrong?
edit:
ok seems problem lies within "makeresponsive" function part of default html template.
problem is, if deactivate resolution on retina ipad worse (but drag & drop working).
@adobe, please release bugfix asap
More discussions in Adobe Animate CC - General
adobe
Comments
Post a Comment