mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-04-09 00:40:59 +00:00
Fire 'object:selected' only once
The event 'object:selected' should only be called on first activation. Fixes #584
This commit is contained in:
parent
4e1a26cc11
commit
acfddabe16
1 changed files with 1 additions and 1 deletions
|
|
@ -227,7 +227,7 @@
|
|||
target = this.getActiveGroup();
|
||||
}
|
||||
else {
|
||||
if (target !== this.getActiveGroup()) {
|
||||
if (target !== this.getActiveGroup() && target !== this.getActiveObject()) {
|
||||
this.deactivateAll();
|
||||
this.setActiveObject(target, e);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue