Closed Dazzuh closed 3 years ago
The bar already loads with the latest value in the most recent version, it's hard coded into the HTML template. I'm sorry, I forgot to push my most recent updates! Scroll wheel support is a great idea.
What I would recommend, taking the latest codebase into account:
change the event binding to:
$('#ts_slider')
.on('input', this.onVolInput.bind(this))
.on('DOMMouseScroll', this.onVolWheel.bind(this))
and then:
tS.prototype.onVolWheel = function(e) {
console.log(e.target.value || e)
// your code here
}
also made the bar load with the current volume value