mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-07 13:22:07 -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
|
// Now query stroke if we haven't already
|
||||||
if (!loc && radius > 0)
|
if (!loc && radius > 0)
|
||||||
loc = this.getNearestLocation(point, matrix);
|
loc = this.getNearestLocation(point, matrix);
|
||||||
if (loc._distance <= radius)
|
if (loc && loc._distance <= radius)
|
||||||
return options.stroke
|
return options.stroke
|
||||||
? new HitResult('stroke', loc)
|
? new HitResult('stroke', loc)
|
||||||
: new HitResult('fill', this);
|
: new HitResult('fill', this);
|
||||||
|
|
Loading…
Reference in a new issue