Bug Fixed: purpose
This commit is contained in:
1 parent
85707562b7
commit
46936d5e0c
2 files changed
+7
-2
No files matched your search
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user