mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-23 22:01:20 -08:00
clean some event
This commit is contained in:
1 parent
3cd470a83c
commit
d4b9fc4d29
5 files changed
+8
-29
No files matched your search
@@ -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');
|
||||
|
||||
Reference in new issue
Block a user