From 5beb0f17edb754296c6dae15cd01665febc6aa9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Tue, 26 Nov 2013 23:13:11 +0100 Subject: [PATCH] Fix hit-testing on paths with a matrix that is not the identity. --- src/path/Path.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/path/Path.js b/src/path/Path.js index 51146936..64528b3d 100644 --- a/src/path/Path.js +++ b/src/path/Path.js @@ -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