diff --git a/js/ui/slider.js b/js/ui/slider.js index 3e35dbcb2..662716d67 100644 --- a/js/ui/slider.js +++ b/js/ui/slider.js @@ -100,10 +100,15 @@ var Slider = GObject.registerClass({ _endDragging() { if (this._dragging) { - if (this._releaseId) + if (this._releaseId) { this.disconnect(this._releaseId); - if (this._motionId) + this._releaseId = 0; + } + + if (this._motionId) { this.disconnect(this._motionId); + this._motionId = 0; + } if (this._grabbedSequence != null) this._grabbedDevice.sequence_ungrab(this._grabbedSequence);