mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Don't forget to set #_bounds again if recycling.
This fixes the other observed slowdown since the bounds caching code overhaul.
This commit is contained in:
parent
873cd79517
commit
dbd3eff84b
1 changed files with 1 additions and 0 deletions
|
@ -1858,6 +1858,7 @@ function(name) {
|
|||
rect = bounds[type && type.bounds || 'bounds'];
|
||||
if (rect)
|
||||
this._position = rect.getCenter(true);
|
||||
this._bounds = bounds;
|
||||
} else if (position) {
|
||||
// Transform position as well.
|
||||
this._position = matrix._transformPoint(position, position);
|
||||
|
|
Loading…
Reference in a new issue