|
|
|
@ -94,8 +94,8 @@ StepManager.prototype.startSlider = function () { |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
this.slider = new Slider() |
|
|
|
|
this.slider.event.register('sliderMoved', this, function (step) { |
|
|
|
|
self.sliderMoved(step) |
|
|
|
|
this.slider.event.register('sliderMoved', (step) => { |
|
|
|
|
self.updateStep(step) |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
this.parent.callTree.event.register('callTreeReady', () => { |
|
|
|
@ -181,11 +181,6 @@ StepManager.prototype.init = function () { |
|
|
|
|
this.changeState(0) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
StepManager.prototype.sliderMoved = function (step) { |
|
|
|
|
if (!this.traceManager.inRange(step)) return |
|
|
|
|
this.changeState(step) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
StepManager.prototype.updateStep = function (step) { |
|
|
|
|
this.slider.setValue(step) |
|
|
|
|
this.changeState(step) |
|
|
|
|