diff --git a/js/sigplot.accordion.js b/js/sigplot.accordion.js index 262153c..79282c5 100644 --- a/js/sigplot.accordion.js +++ b/js/sigplot.accordion.js @@ -506,15 +506,15 @@ _onDocMouseUp() { const Mx = this.Mx; - // We are no longer dragging - this.dragging = false; - this.edge_dragging = false; - // only emit an event if we are actually dragging if (!this.dragging || !this.edge_dragging) { return; } + // We are no longer dragging + this.dragging = false; + this.edge_dragging = false; + // Issue a slider tag event let evt = document.createEvent('Event'); evt.initEvent('accordiontag', true, true);