Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tony Wasserka
funkwhale
Commits
0b6d9ee5
Commit
0b6d9ee5
authored
Sep 08, 2021
by
Georg Krause
Browse files
Adjust volume slider to have 100 steps
parent
d1365621
Pipeline
#16369
passed with stages
in 14 minutes and 9 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
front/src/components/audio/VolumeControl.vue
View file @
0b6d9ee5
...
...
@@ -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
()
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment