Skip to content

Commit

Permalink
commit #7744 review
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaMan123 committed Apr 3, 2022
1 parent 26e8392 commit 7d793b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/shapes/group.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,6 @@
var directive = watch ? 'on' : 'off';
// make sure we listen only once
watch && this._watchObject(false, object);
// TODO check what changed ischeck
object[directive]('changed', this.__objectMonitor);
object[directive]('modified', this.__objectMonitor);
object[directive]('selected', this.__objectSelectionTracker);
Expand Down Expand Up @@ -253,9 +252,10 @@
object.setCoords();
object._set('group', this);
object._set('canvas', this.canvas);
this._watchObject(true, object);
this.interactive && this._watchObject(true, object);
var activeObject = this.canvas && this.canvas.getActiveObject && this.canvas.getActiveObject();
// if we are adding the activeObject in a group
// TODO migrate back to isDescendantOf
if (activeObject && (activeObject === object || (object.contains && object.contains(activeObject)))) {
this._activeObjects.push(object);
}
Expand Down

0 comments on commit 7d793b3

Please sign in to comment.