clean some event

This commit is contained in:
Harvey Zack committed 2018-11-22 11:09:28 +08:00
1 parent 3cd470a83c
commit d4b9fc4d29
5 files changed
+8 -29

No files matched your search

+1 -10
View File
@@ -3585,9 +3585,7 @@
var _this = this;
this.art = art;
var _art$events = art.events,
proxy = _art$events.proxy,
hover = _art$events.hover,
var proxy = art.events.proxy,
player = art.player,
i18n = art.i18n;
this.$volume = append($control, icons.volume);
@@ -3606,11 +3604,6 @@
proxy(this.$volumeClose, 'click', function () {
player.muted = false;
});
hover($control, function () {
_this.$volumePanel.classList.add('art-volume-panel-hover');
}, function () {
_this.$volumePanel.classList.remove('art-volume-panel-hover');
});
proxy(this.$volumePanel, 'click', function (event) {
player.muted = false;
player.volume = _this.volumeChangeFromEvent(event);
@@ -3657,8 +3650,6 @@
// TODO...
var panelWidth = getStyle(this.$volumePanel, 'width') || 60;
var handleWidth = getStyle(this.$volumeHandle, 'width');
console.log('panelWidth', panelWidth);
console.log('handleWidth', handleWidth);
var width = handleWidth / 2 + (panelWidth - handleWidth) * percentage - handleWidth / 2;
setStyle(this.$volume, 'display', 'flex');
setStyle(this.$volumeClose, 'display', 'none');