Fix hit-testing on paths with a matrix that is not the identity.

This commit is contained in:
Jürg Lehni 2013-11-26 23:13:11 +01:00
parent 97d94e8401
commit 5beb0f17ed

View file

@ -1861,7 +1861,7 @@ var Path = PathItem.extend(/** @lends Path# */{
// Don't process loc yet, as we also need to query for stroke after fill
// in some cases. Simply skip fill query if we already have a matching
// stroke.
return !loc && options.fill && this.hasFill() && this.contains(point)
return !loc && options.fill && this.hasFill() && this._contains(point)
? new HitResult('fill', this)
: loc
// TODO: Do we need to transform loc back to the coordinate