bug fixed turning off scales when switching focus

This commit is contained in:
Luis Fernando Molina committed 2020-01-10 15:17:05 +01:00
1 parent 8666913065
commit 6f1f85b194
3 files changed
+9 -12

No files matched your search

-11
View File
@@ -217,17 +217,6 @@ function newTimeMachine () {
if (thisObject.container.frame.isThisPointHere(point) === true) {
return thisObject.container
} else {
if (purpose === GET_CONTAINER_PURPOSE.MOUSE_OVER) {
thisObject.container.eventHandler.raiseEvent('onMouseNotOver')
if (thisObject.timeScale !== undefined) {
thisObject.timeScale.visible = false
}
if (thisObject.rateScale !== undefined) {
thisObject.rateScale.visible = false
}
}
return
}
}
+1
View File
@@ -193,6 +193,7 @@ function newTimelineChart () {
onMouseNotOverEventSuscriptionId = thisObject.container.eventHandler.listenToEvent('onMouseNotOver', onMouseNotOver)
function onMouseNotOver (event) {
/* This event is inherited from the Time Machine */
if (thisObject.timeFrameScale !== undefined) {
thisObject.timeFrameScale.visible = false
}
+8 -1
View File
@@ -70,8 +70,15 @@ function newChartSpace () {
let container
/* Now we see which is the inner most container that has it */
/* This first step is not actually to get the container but to allow things to be turned off in case there is a switch of focus from one time machine to another */
for (let i = 0; i < thisObject.timeMachines.length; i++) {
container = thisObject.timeMachines[i].container
if (purpose === GET_CONTAINER_PURPOSE.MOUSE_OVER) {
container.eventHandler.raiseEvent('onMouseNotOver')
}
}
/* Now we see which is the inner most container that has it */
for (let i = 0; i < thisObject.timeMachines.length; i++) {
container = thisObject.timeMachines[i].getContainer(point, purpose)
if (container !== undefined) {