From 326d8db4db896618ff8352f24655d9b18ab8fa60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Sun, 24 Feb 2013 18:04:20 -0800 Subject: [PATCH] Do not hittest locked items. --- src/item/Item.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/item/Item.js b/src/item/Item.js index 70e5de93..99a61873 100644 --- a/src/item/Item.js +++ b/src/item/Item.js @@ -1144,6 +1144,9 @@ var Item = this.Item = Base.extend(Callback, { { name: Base.hyphenate(part), point: pt }); } + if (this._locked) + return null; + point = Point.read(arguments); options = HitResult.getOptions(Base.read(arguments)); // Check if the point is withing roughBounds + tolerance, but only if