From 7670b894c059511b610ab19abc7d0748f8bb1380 Mon Sep 17 00:00:00 2001 From: Asturur Date: Sun, 23 Apr 2017 23:49:32 +0200 Subject: [PATCH] pass event to functions --- src/mixins/canvas_grouping.mixin.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mixins/canvas_grouping.mixin.js b/src/mixins/canvas_grouping.mixin.js index 4ce96effc3f..040d5628e61 100644 --- a/src/mixins/canvas_grouping.mixin.js +++ b/src/mixins/canvas_grouping.mixin.js @@ -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(); } },