Correctly unmute when volume track is dragged

This commit is contained in:
An Phan 2016-11-24 16:28:32 +08:00
parent a67a211272
commit 645bf9e3c7
No known key found for this signature in database
GPG key ID: 05536BB4BCDC02A2

View file

@ -35,10 +35,10 @@
<equalizer v-if="useEqualizer" v-show="showEqualizer"/> <equalizer v-if="useEqualizer" v-show="showEqualizer"/>
<sound-bar v-show="song.playbackState === 'playing'"/> <sound-bar v-show="song.playbackState === 'playing'"/>
<i class="like control fa fa-heart" :class="{ liked: song.liked }" @click.prevent="like"/> <i class="like control fa fa-heart" :class="{ liked: song.liked }" @click.prevent="like"/>
<span class="control" <span class="control info"
@click.prevent="toggleExtraPanel" @click.prevent="toggleExtraPanel"
:class="{ active: prefs.showExtraPanel }">Info</span> :class="{ active: prefs.showExtraPanel }">Info</span>
<i class="fa fa-sliders control" <i class="fa fa-sliders control equalizer"
v-if="useEqualizer" v-if="useEqualizer"
@click="showEqualizer = !showEqualizer" @click="showEqualizer = !showEqualizer"
:class="{ active: showEqualizer }"/> :class="{ active: showEqualizer }"/>
@ -54,7 +54,7 @@
<span class="volume control" id="volume"> <span class="volume control" id="volume">
<i class="fa fa-volume-up" @click.prevent="mute" v-show="!muted"/> <i class="fa fa-volume-up" @click.prevent="mute" v-show="!muted"/>
<i class="fa fa-volume-off" @click.prevent="unmute" v-show="muted"/> <i class="fa fa-volume-off" @click.prevent="unmute" v-show="muted"/>
<input type="range" id="volumeRange" max="10" step="0.1" class="plyr__volume"> <input type="range" id="volumeRange" max="10" step="0.1" @change="muted = false" class="plyr__volume">
</span> </span>
</div> </div>
</div> </div>