mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-14 00:33:09 +00:00
pass event to functions (#3871)
This commit is contained in:
parent
e2facba9d3
commit
8814225bb1
1 changed files with 3 additions and 3 deletions
|
|
@ -61,7 +61,7 @@
|
|||
// remove group alltogether if after removal it only contains 1 object
|
||||
this.discardActiveGroup(e);
|
||||
// activate last remaining object
|
||||
this.setActiveObject(activeGroup.item(0));
|
||||
this.setActiveObject(activeGroup.item(0), e);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
@ -82,7 +82,7 @@
|
|||
var group = this._createGroup(target);
|
||||
group.addWithUpdate();
|
||||
|
||||
this.setActiveGroup(group);
|
||||
this.setActiveGroup(group, e);
|
||||
this._activeObject = null;
|
||||
|
||||
this.fire('selection:created', { target: group, e: e });
|
||||
|
|
@ -127,7 +127,7 @@
|
|||
group.addWithUpdate();
|
||||
this.setActiveGroup(group, e);
|
||||
group.saveCoords();
|
||||
this.fire('selection:created', { target: group });
|
||||
this.fire('selection:created', { target: group, e: e });
|
||||
this.renderAll();
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue