diff options
| -rw-r--r-- | player.mjs | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -30,10 +30,9 @@ export default class extends HTMLElement { this.globalGain.connect(this.audioCtx.destination); this.globalGain.gain.setValueAtTime(this.volume, this.audioCtx.currentTime); - this.querySelector('.volume').onchange = e => { - console.debug('vol changed', e, this.volume); + this.querySelector('.volume').addEventListener('input', _ => { this.globalGain.gain.setValueAtTime(this.volume, this.audioCtx.currentTime); - } + }); } get volume() { |
