mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-19 14:10:14 -05:00
parent
f2f34c3b75
commit
b724a59901
1 changed files with 2 additions and 2 deletions
|
@ -1746,8 +1746,8 @@ var Item = Base.extend(Emitter, /** @lends Item# */{
|
|||
);
|
||||
// Transform point to local coordinates.
|
||||
point = matrix._inverseTransform(point);
|
||||
|
||||
if (!this._children && !this.getInternalRoughBounds()
|
||||
// If the matrix is non-reversible, point will now be `null`:
|
||||
if (!point || !this._children && !this.getInternalRoughBounds()
|
||||
.expand(tolerancePadding.multiply(2))._containsPoint(point))
|
||||
return null;
|
||||
// Filter for type, guides and selected items if that's required.
|
||||
|
|
Loading…
Reference in a new issue