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
Philipp Wolfer
funkwhale
Commits
61148534
Commit
61148534
authored
Sep 10, 2021
by
Tony Wasserka
Committed by
Georg Krause
Sep 10, 2021
Browse files
Enable stepless adjustment of the volume control slider
parent
ee4d0928
Changes
2
Hide whitespace changes
Inline
Side-by-side
changes/changelog.d/1294.bugfix
0 → 100644
View file @
61148534
Enable stepless adjustment of the volume slider (!1294)
front/src/components/audio/VolumeControl.vue
View file @
61148534
...
...
@@ -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
()
{
...
...
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