mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-04-09 00:40:59 +00:00
Remove unnecessary renderAll calls. Thanks @Kienz. Closes #587
This commit is contained in:
parent
acfddabe16
commit
d755d64c76
5 changed files with 8 additions and 10 deletions
5
dist/all.js
vendored
5
dist/all.js
vendored
|
|
@ -8470,9 +8470,8 @@ fabric.PatternBrush = fabric.util.createClass(fabric.PencilBrush, /** @lends fab
|
|||
this.setActiveGroup(group);
|
||||
group.saveCoords();
|
||||
this.fire('selection:created', { target: group });
|
||||
this.renderAll();
|
||||
}
|
||||
|
||||
this.renderAll();
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
@ -8900,7 +8899,7 @@ fabric.PatternBrush = fabric.util.createClass(fabric.PencilBrush, /** @lends fab
|
|||
|
||||
this._currentTransform = null;
|
||||
|
||||
if (this._groupSelector) {
|
||||
if (this.selection && this._groupSelector) {
|
||||
// group selection was completed, determine its bounds
|
||||
this._findSelectedObjects(e);
|
||||
}
|
||||
|
|
|
|||
8
dist/all.min.js
vendored
8
dist/all.min.js
vendored
File diff suppressed because one or more lines are too long
BIN
dist/all.min.js.gz
vendored
BIN
dist/all.min.js.gz
vendored
Binary file not shown.
|
|
@ -672,9 +672,8 @@
|
|||
this.setActiveGroup(group);
|
||||
group.saveCoords();
|
||||
this.fire('selection:created', { target: group });
|
||||
this.renderAll();
|
||||
}
|
||||
|
||||
this.renderAll();
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -144,7 +144,7 @@
|
|||
|
||||
this._currentTransform = null;
|
||||
|
||||
if (this._groupSelector) {
|
||||
if (this.selection && this._groupSelector) {
|
||||
// group selection was completed, determine its bounds
|
||||
this._findSelectedObjects(e);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue