Call setCoords() only on target object

Only update target's cornerCoords.
This commit is contained in:
Stefan Kienzle 2013-05-06 18:11:42 +03:00
parent d6e292e482
commit 662b322cd1

View file

@ -122,13 +122,8 @@
target._scaling = false;
}
// determine the new coords everytime the image changes its position
var i = this._objects.length;
while (i--) {
this._objects[i].setCoords();
}
target.isMoving = false;
target.setCoords();
// only fire :modified event if target coordinates were changed during mousedown-mouseup
if (this.stateful && target.hasStateChanged()) {