This commit is contained in:
Harvey Zack committed 2018-10-23 17:56:17 +08:00
1 parent a325aabe98
commit 88526b3b7f
3 files changed
+8 -3

No files matched your search

+4 -1
View File
@@ -7,7 +7,6 @@ export default class Volume {
this.option = option;
this.isDroging = false;
this.init();
this.setVolumeHandle(getStorage('volume'));
}
init() {
@@ -18,6 +17,10 @@ export default class Volume {
this.$volumeHandle = append(this.$volumePanel, '<div class="art-volume-slider-handle"></div>');
this.$volumeClose.style.display = 'none';
const volume = getStorage('volume');
this.setVolumeHandle(volume);
player.volume(volume);
proxy(this.$volume, 'click', () => {
this.$volume.style.display = 'none';
this.$volumeClose.style.display = 'block';