mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-28 17:02:24 -05:00
Minor code clean-up.
This commit is contained in:
parent
1f03b00f99
commit
aa3f527ca6
1 changed files with 1 additions and 2 deletions
|
@ -365,8 +365,7 @@
|
|||
for (var i = 0, len = children && children.length; i < len; i++) {
|
||||
var cCenter = children[i].bounds.center;
|
||||
var vec = cCenter.subtract(center);
|
||||
vec = (vec.isClose([0,0], 0.5))? vec : vec.normalize(distance);
|
||||
children[i].translate(vec);
|
||||
children[i].translate(vec.length < 0.5 ? vec : vec.normalize(distance));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue