Fix bug in 'stroke' hit-results.

This commit is contained in:
Jürg Lehni 2011-07-08 23:32:29 +02:00
parent b1a2a626ad
commit 0a7f5a12a5

View file

@ -1238,7 +1238,7 @@ var Path = this.Path = PathItem.extend(/** @lends Path# */{
loc = this.getNearestLocation(point, matrix);
if (loc && loc._distance <= radius)
return options.stroke
? new HitResult('stroke', this, { location: location })
? new HitResult('stroke', this, { location: loc })
: new HitResult('fill', this);
}