mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -05:00
Do not hittest locked items.
This commit is contained in:
parent
82029652c8
commit
326d8db4db
1 changed files with 3 additions and 0 deletions
|
@ -1144,6 +1144,9 @@ var Item = this.Item = Base.extend(Callback, {
|
|||
{ name: Base.hyphenate(part), point: pt });
|
||||
}
|
||||
|
||||
if (this._locked)
|
||||
return null;
|
||||
|
||||
point = Point.read(arguments);
|
||||
options = HitResult.getOptions(Base.read(arguments));
|
||||
// Check if the point is withing roughBounds + tolerance, but only if
|
||||
|
|
Loading…
Reference in a new issue