Verified Commit a3475a25 authored by Georg Krause's avatar Georg Krause
Browse files

Adjust volume slider to have 100 steps

parent ab4f1487
Pipeline #16329 failed with stages
in 1 minute and 37 seconds
......@@ -31,7 +31,7 @@
type="range"
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 () {
......
Supports Markdown
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