I have a bitmap inside of a container. When I drag the container the cursor changes to the edit-text shape, and also the image jumps to the bottom-right side of the cursor (
my solution
(function(t, n) {
layer.addEventListener('mousedown', function(evt) {
var offset = {
x: t.x - evt.stageX,
y: t.y - evt.stageY
}
t.addEventListener("pressmove", function(e2){
t.x = offset.x + e2.stageX;
t.y = offset.y + e2.stageY;
app.stage.update();
})
});
})(layer, i);
where layer is the layer, and i is not used.