ElbertF/Raphael.FreeTransform — Issue #6: Handles are not updated
Author: shybovycha
Created: 2012-02-20 18:46:57+00:00
State: open

I'm using this solution to handle my set' dragging:

start = function() {
entity.oBB = entity.getBBox();
entity2.oBB = entity2.getBBox();
},

move = function(dx, dy) {
var bb = entity.getBBox();
entity.translate(entity.oBB.x - bb.x + dx, entity.oBB.y - bb.y + dy);
entity2.translate(entity.oBB.x - bb.x + dx, entity.oBB.y - bb.y + dy);
},

up = function() {
console.log(name, ' dropped!');
};

entity.drag(move, start, up);

Now, when i create a FreeTransform for that set (_entity_ and _entity2_ both are sets; set2 moves relative to set), the control (handle) seems to appear at the _(0, 0)_ point. And when i drag sets somewhere, handle does not.