mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Fix slow-down in bounds caching.
This commit is contained in:
parent
2cd3de8188
commit
f8f60ec603
1 changed files with 1 additions and 1 deletions
|
@ -2668,7 +2668,7 @@ var Item = Base.extend(Callback, /** @lends Item# */{
|
|||
// and transform the cached _bounds and _position without having to
|
||||
// fully recalculate each time.
|
||||
var decomp = bounds && matrix.decompose();
|
||||
if (decomp && !decomp.shearing && decomp.angle % 90 === 0) {
|
||||
if (decomp && !decomp.shearing && decomp.rotation % 90 === 0) {
|
||||
// Transform the old bound by looping through all the cached bounds
|
||||
// in _bounds and transform each.
|
||||
for (var key in bounds) {
|
||||
|
|
Loading…
Reference in a new issue