From 76426c4cb33d6bfe1b15e22409e7ee7db8832d60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Sun, 23 Jun 2013 17:55:14 -0700 Subject: [PATCH] Take #visible state into account when hit-testing. Closes #243. --- src/item/Item.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/item/Item.js b/src/item/Item.js index c3004e5a..14bd8d24 100644 --- a/src/item/Item.js +++ b/src/item/Item.js @@ -1381,7 +1381,7 @@ var Item = Base.extend(Callback, /** @lends Item# */{ { name: Base.hyphenate(part), point: pt }); } - if (this._locked) + if (this._locked || !this._visible) return null; point = Point.read(arguments);