Bug on set to user location
This commit is contained in:
1 parent
0df490bd1f
commit
b9522736c6
4 files changed
+11
-3
No files matched your search
@@ -182,7 +182,9 @@ function newTimeMachine () {
|
||||
timeScaleEventSuscriptionId = thisObject.timeScale.container.eventHandler.listenToEvent('Lenght Percentage Changed', function (event) {
|
||||
thisObject.container.frame.width = TIME_MACHINE_WIDTH * event.value / 100
|
||||
recalculateCoordinateSystem()
|
||||
// moveToUserPosition(thisObject.container, timeMachineCoordinateSystem, false, true, event.mousePosition, false, true)
|
||||
if (event.isUserAction === true) {
|
||||
moveToUserPosition(thisObject.container, timeMachineCoordinateSystem, false, true, event.mousePosition, false, true)
|
||||
}
|
||||
thisObject.container.eventHandler.raiseEvent('Dimmensions Changed', event)
|
||||
})
|
||||
|
||||
@@ -203,7 +205,9 @@ function newTimeMachine () {
|
||||
rateScaleEventSuscriptionId = thisObject.rateScale.container.eventHandler.listenToEvent('Height Percentage Changed', function (event) {
|
||||
thisObject.container.frame.height = TIME_MACHINE_HEIGHT * event.value / 100
|
||||
recalculateCoordinateSystem()
|
||||
// moveToUserPosition(thisObject.container, timeMachineCoordinateSystem, true, false, event.mousePosition, false, true)
|
||||
if (event.isUserAction === true) {
|
||||
moveToUserPosition(thisObject.container, timeMachineCoordinateSystem, true, false, event.mousePosition, false, true)
|
||||
}
|
||||
thisObject.container.eventHandler.raiseEvent('Dimmensions Changed', event)
|
||||
})
|
||||
|
||||
|
||||
@@ -168,7 +168,9 @@ function newTimelineChart () {
|
||||
rateScaleEventSuscriptionId = thisObject.rateScale.container.eventHandler.listenToEvent('Height Percentage Changed', function (event) {
|
||||
thisObject.container.frame.height = TIME_MACHINE_HEIGHT * event.value / 100
|
||||
recalculateCoordinateSystem()
|
||||
// moveToUserPosition(thisObject.container, timelineChartCoordinateSystem, true, false, event.mousePosition, false, true)
|
||||
if (event.isUserAction === true) {
|
||||
moveToUserPosition(thisObject.container, timelineChartCoordinateSystem, true, false, event.mousePosition, false, true)
|
||||
}
|
||||
thisObject.container.eventHandler.raiseEvent('Dimmensions Changed', event)
|
||||
})
|
||||
|
||||
|
||||
@@ -124,6 +124,7 @@ function newRateScale () {
|
||||
if (thisObject.value > MAX_VALUE) { thisObject.value = MAX_VALUE }
|
||||
}
|
||||
event.value = thisObject.value
|
||||
event.isUserAction = true
|
||||
thisObject.container.eventHandler.raiseEvent('Height Percentage Changed', event)
|
||||
|
||||
saveObjectState()
|
||||
|
||||
@@ -124,6 +124,7 @@ function newTimeScale () {
|
||||
}
|
||||
|
||||
event.value = thisObject.value
|
||||
event.isUserAction = true
|
||||
thisObject.container.eventHandler.raiseEvent('Lenght Percentage Changed', event)
|
||||
|
||||
saveObjectState()
|
||||
|
||||
Reference in new issue
Block a user