# HG changeset patch # User Nicholas Jillings # Date 1509443695 0 # Node ID 7d1a34b5a4d28976ac792d0e5bb1d5468efed513 # Parent 3dc059f3b57cb59f630c877992cace07c2096cc8 Fix for #250 diff -r 3dc059f3b57c -r 7d1a34b5a4d2 js/core.js --- a/js/core.js Mon Oct 30 15:34:44 2017 +0000 +++ b/js/core.js Tue Oct 31 09:54:55 2017 +0000 @@ -3025,12 +3025,13 @@ volume.slider.value = 0; volume.slider.step = 1; volume.handleEvent = function (event) { - if (event.type == "mousemove") { + if (event.type == "mousemove" || event.type == "mouseup") { this.valueDB = Number(this.slider.value); this.valueLin = decibelToLinear(this.valueDB); this.valueText.textContent = this.valueDB + 'dB'; audioEngineContext.outputGain.gain.value = this.valueLin; - } else if (event.type == "mouseup") { + } + if (event.type == "mouseup") { this.onmouseup(); } this.slider.value = this.valueDB;