mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-22 04:11:52 +00:00
Added back target to object:modified (#4348)
* added back target * Update canvas.class.js
This commit is contained in:
parent
2c2111ebe3
commit
cc7c36fa7d
1 changed files with 2 additions and 0 deletions
|
|
@ -1425,8 +1425,10 @@
|
|||
}
|
||||
else if (objects.length > 0) {
|
||||
if (objects.length === 1) {
|
||||
opt.target = added[0];
|
||||
this.fire('object:selected', opt);
|
||||
}
|
||||
opt.target = undefined;
|
||||
opt.selected = added;
|
||||
this.fire('selection:created', opt);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue