From 74b23c18829bb35fd6bfdd3edfc10b854d3fffcf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Sat, 9 Jul 2011 09:27:54 +0200 Subject: [PATCH] Use #roughBounds rather than #bounds in #contains() check. --- 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 4d8a97ae..23e0e215 100644 --- a/src/path/Path.js +++ b/src/path/Path.js @@ -1182,7 +1182,7 @@ var Path = this.Path = PathItem.extend(/** @lends Path# */{ contains: function(point, matrix) { point = Point.read(arguments); - if (!this._closed || !this.getBounds(matrix).contains(point)) + if (!this._closed || !this.getRoughBounds(matrix).contains(point)) return false; // Use the crossing number algorithm, by counting the crossings of the // beam in right y-direction with the shape, and see if it's an odd