Now is really working (timeScale)

This commit is contained in:
Luis Fernando Molina committed 2019-05-16 12:25:18 +02:00
1 parent 41e95ca1a8
commit 439dd28ca1
1 file changed
+3 -4
+3 -4
View File
@@ -61,7 +61,6 @@ function newTimeMachine () {
thisObject.container.finalize()
thisObject.container = undefined
thisObject.timeScale.finalize()
thisObject.timeScale = undefined
thisObject.rateScale.finalize()
@@ -286,13 +285,13 @@ function newTimeMachine () {
let point = {
x: 0,
y: thisObject.container.frame.height / 10
y: 0
}
point = transformThisPoint(point, thisObject.container.frame.container)
point = viewPort.fitIntoVisibleArea(point)
point = thisObject.container.fitFunction(point)
thisObject.timeScale.container.frame.position.y = point.y + 6
thisObject.timeScale.container.frame.position.y = point.y
}
function drawBackground () {