Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
front
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
funkwhale
front
Commits
6d1596b5
Commit
6d1596b5
authored
8 years ago
by
Eliot Berriot
Browse files
Options
Downloads
Patches
Plain Diff
Fixed glitchy volume slider
parent
424be328
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/components/audio/Player.vue
+9
-3
9 additions, 3 deletions
src/components/audio/Player.vue
with
9 additions
and
3 deletions
src/components/audio/Player.vue
+
9
−
3
View file @
6d1596b5
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
<div
class=
"controls ui grid"
>
<div
class=
"controls ui grid"
>
<div
class=
"volume-control four wide center aligned column"
>
<div
class=
"volume-control four wide center aligned column"
>
<input
type=
"range"
step=
"0.05"
min=
"0"
max=
"1"
@
change=
"queue.setVolume(parseFloat($event.target.value))"
:value=
"currentVolume"
/>
<input
ref=
"volume"
type=
"range"
step=
"0.05"
min=
"0"
max=
"1"
@
change=
"queue.setVolume(parseFloat($event.target.value))"
/>
<i
title=
"Unmute"
@
click=
"queue.setVolume(1)"
v-if=
"currentVolume === 0"
class=
"volume off secondary icon"
></i>
<i
title=
"Unmute"
@
click=
"queue.setVolume(1)"
v-if=
"currentVolume === 0"
class=
"volume off secondary icon"
></i>
<i
title=
"Mute"
@
click=
"queue.setVolume(0)"
v-else-if=
"currentVolume
<
0.5"
class=
"volume down secondary icon"
></i>
<i
title=
"Mute"
@
click=
"queue.setVolume(0)"
v-else-if=
"currentVolume
<
0.5"
class=
"volume down secondary icon"
></i>
<i
title=
"Mute"
@
click=
"queue.setVolume(0)"
v-else
class=
"volume up secondary icon"
></i>
<i
title=
"Mute"
@
click=
"queue.setVolume(0)"
v-else
class=
"volume up secondary icon"
></i>
...
@@ -80,7 +80,9 @@ export default {
...
@@ -80,7 +80,9 @@ export default {
radios
radios
}
}
},
},
mounted
()
{
this
.
$refs
.
volume
.
value
=
this
.
currentVolume
},
methods
:
{
methods
:
{
pauseOrPlay
()
{
pauseOrPlay
()
{
if
(
this
.
queue
.
audio
.
state
.
playing
)
{
if
(
this
.
queue
.
audio
.
state
.
playing
)
{
...
@@ -106,7 +108,11 @@ export default {
...
@@ -106,7 +108,11 @@ export default {
currentVolume
()
{
currentVolume
()
{
return
this
.
queue
.
audio
.
state
.
volume
return
this
.
queue
.
audio
.
state
.
volume
}
}
},
watch
:
{
currentVolume
(
newValue
)
{
this
.
$refs
.
volume
.
value
=
this
.
currentVolume
}
}
}
}
}
</
script
>
</
script
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment