Bug Fixed: purpose

This commit is contained in:
Luis Fernando Molina committed 2020-01-11 09:34:36 +01:00
1 parent 85707562b7
commit 46936d5e0c
2 files changed
+7 -2

No files matched your search

+1 -1
View File
@@ -257,7 +257,7 @@ function newTimeMachine () {
}
for (let i = 0; i < thisObject.timelineCharts.length; i++) {
container = thisObject.timelineCharts[i].getContainer(point)
container = thisObject.timelineCharts[i].getContainer(point, purpose)
if (container !== undefined) {
if (container.isForThisPurpose(purpose)) {
if (thisObject.container.frame.isThisPointHere(point) === true) {
+6 -1
View File
@@ -227,11 +227,16 @@ function newTimelineChart () {
thisObject.plotterManager.setDatetime(datetime)
}
function getContainer (point) {
function getContainer (point, purpose) {
let container
if (thisObject.timeFrameScale !== undefined) {
container = thisObject.timeFrameScale.getContainer(point)
if (container !== undefined) {
if (container.isForThisPurpose(purpose)) {
return container
}
}
}
return container