mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-06 04:42:15 -05:00
Fix small problem in Item#_hitTest.
This commit is contained in:
parent
a0f4371803
commit
36be78c671
1 changed files with 1 additions and 1 deletions
|
@ -1215,7 +1215,7 @@ var Path = this.Path = PathItem.extend(/** @lends Path# */{
|
|||
// Now query stroke if we haven't already
|
||||
if (!loc && radius > 0)
|
||||
loc = this.getNearestLocation(point, matrix);
|
||||
if (loc._distance <= radius)
|
||||
if (loc && loc._distance <= radius)
|
||||
return options.stroke
|
||||
? new HitResult('stroke', loc)
|
||||
: new HitResult('fill', this);
|
||||
|
|
Loading…
Reference in a new issue