stadarizing refactoring

This commit is contained in:
Luis Fernando Molina committed 2020-01-17 11:28:26 +01:00
1 parent 44d0944a56
commit b5dd022c0f
4 files changed
+29 -29

No files matched your search

+2 -2
View File
@@ -178,7 +178,7 @@ function newTimeMachine () {
thisObject.timeScale.payload = thisObject.payload.node.timeScale.payload
timeScaleEventSuscriptionId = thisObject.timeScale.container.eventHandler.listenToEvent('Lenght Percentage Changed', function (event) {
thisObject.container.frame.width = TIME_MACHINE_WIDTH * event.lenghtPercentage / 100
thisObject.container.frame.width = TIME_MACHINE_WIDTH * event.value / 100
recalculateCoordinateSystem()
moveToUserPosition(thisObject.container, timeMachineCoordinateSystem, false, true, event.mousePosition, false, true)
thisObject.container.eventHandler.raiseEvent('Dimmensions Changed', event)
@@ -199,7 +199,7 @@ function newTimeMachine () {
thisObject.rateScale.payload = thisObject.payload.node.rateScale.payload
rateScaleEventSuscriptionId = thisObject.rateScale.container.eventHandler.listenToEvent('Height Percentage Changed', function (event) {
thisObject.container.frame.height = TIME_MACHINE_HEIGHT * event.heightPercentage / 100
thisObject.container.frame.height = TIME_MACHINE_HEIGHT * event.value / 100
recalculateCoordinateSystem()
moveToUserPosition(thisObject.container, timeMachineCoordinateSystem, true, false, event.mousePosition, false, true)
thisObject.container.eventHandler.raiseEvent('Dimmensions Changed', event)