diff --git a/src/app/debugger/debuggerUI/StepManager.js b/src/app/debugger/debuggerUI/StepManager.js index 2024f4e194..d8533ce65d 100644 --- a/src/app/debugger/debuggerUI/StepManager.js +++ b/src/app/debugger/debuggerUI/StepManager.js @@ -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)