From ab24f92373245754621bb156e340a79b894853b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Sun, 19 Jun 2016 11:02:54 +0200 Subject: [PATCH] Bring back accidentally removed hit-test optimization in event handling. See comment. --- src/view/View.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/view/View.js b/src/view/View.js index b5b991be..0cb9446b 100644 --- a/src/view/View.js +++ b/src/view/View.js @@ -1296,7 +1296,7 @@ new function() { // Injection scope for event handling on the browser // Run the hit-test on items first, but only if we're required to do // so for this given mouse event, see hitItems, #_countItemEvent(): var inView = this.getBounds().contains(point), - hit = inView && view._project.hitTest(point, { + hit = hitItems && inView && view._project.hitTest(point, { tolerance: 0, fill: true, stroke: true