Commit 61148534 authored by Tony Wasserka's avatar Tony Wasserka Committed by Georg Krause
Browse files

Enable stepless adjustment of the volume control slider

parent ee4d0928
Pipeline #16378 failed with stages
in 6 minutes and 18 seconds
Enable stepless adjustment of the volume slider (!1294)
......@@ -29,9 +29,9 @@
<input
id="volume-slider"
type="range"
step="0.02"
step="any"
min="0"
max="1"
v-bind:max="volumeSteps"
v-model="sliderVolume" />
</div>
</button>
......@@ -44,15 +44,16 @@ export default {
return {
expanded: false,
timeout: null,
volumeSteps: 100,
}
},
computed: {
sliderVolume: {
get () {
return this.$store.state.player.volume
return this.$store.state.player.volume * this.volumeSteps;
},
set (v) {
this.$store.commit("player/volume", v)
this.$store.commit("player/volume", v / this.volumeSteps)
}
},
labels () {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment