mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-24 23:51:20 -08:00
chore: Update Danmuku show and hide methods
This commit is contained in:
1 parent
f79538d259
commit
24e51b96e2
3 files changed
+9
-1
No files matched your search
@@ -582,18 +582,22 @@ export default class Danmuku {
|
||||
}
|
||||
|
||||
show() {
|
||||
if (!this.isHide) return this;
|
||||
this.isHide = false;
|
||||
this.start();
|
||||
this.$danmuku.style.display = '';
|
||||
this.option.visible = true;
|
||||
this.art.emit('artplayerPluginDanmuku:show');
|
||||
return this;
|
||||
}
|
||||
|
||||
hide() {
|
||||
if (this.isHide) return this;
|
||||
this.isHide = true;
|
||||
this.stop();
|
||||
this.queue.forEach((item) => this.makeWait(item));
|
||||
this.$danmuku.style.display = 'none';
|
||||
this.option.visible = false;
|
||||
this.art.emit('artplayerPluginDanmuku:hide');
|
||||
return this;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user