From 0936f6c388dbf9ea51af7b9c2d7b4d185b29b0b2 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Mon, 10 Feb 2020 18:52:34 +0100 Subject: [PATCH] Bug Fixed --- Spaces/ChartSpace.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Spaces/ChartSpace.js b/Spaces/ChartSpace.js index d5cc45486..c7480606e 100644 --- a/Spaces/ChartSpace.js +++ b/Spaces/ChartSpace.js @@ -123,23 +123,29 @@ function newChartSpace () { } } - /* Now we see which is the inner most container that has it */ + /* + Now we see which is the inner most container that has it. + In this case we will ask all the time machines even if one of them already returned a matching container. + This will help the others know they are not on ofcus + */ + let containerFound for (let i = 0; i < thisObject.timeMachines.length; i++) { container = thisObject.timeMachines[i].getContainer(point, purpose) if (container !== undefined) { if (purpose !== undefined) { if (container.isForThisPurpose(purpose)) { if (thisObject.container.frame.isThisPointHere(point, true) === true) { - return container + containerFound = container } } } else { if (thisObject.container.frame.isThisPointHere(point, true) === true) { - return container + containerFound = container } } } } + if (containerFound !== undefined) { return containerFound } if (thisObject.container.frame.isThisPointHere(point, true) === true) { return thisObject.container