mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-20 20:21:20 -08:00
chore: Optimize danmuku plugin performance and update configuration handling
This commit is contained in:
1 parent
d0f1f4a76c
commit
4971eaa17c
3 files changed
+1
-9
No files matched your search
@@ -638,7 +638,6 @@ export default class Danmuku {
|
||||
}
|
||||
|
||||
stop() {
|
||||
if (this.isStop) return this;
|
||||
this.isStop = true;
|
||||
this.suspend();
|
||||
window.cancelAnimationFrame(this.timer);
|
||||
@@ -647,7 +646,6 @@ export default class Danmuku {
|
||||
}
|
||||
|
||||
start() {
|
||||
if (!this.isStop) return this;
|
||||
this.isStop = false;
|
||||
this.continue();
|
||||
this.update();
|
||||
@@ -662,7 +660,6 @@ export default class Danmuku {
|
||||
}
|
||||
|
||||
show() {
|
||||
if (!this.isHide) return this;
|
||||
this.isHide = false;
|
||||
this.$danmuku.style.opacity = 1;
|
||||
this.option.visible = true;
|
||||
@@ -671,7 +668,6 @@ export default class Danmuku {
|
||||
}
|
||||
|
||||
hide() {
|
||||
if (this.isHide) return this;
|
||||
this.isHide = true;
|
||||
this.$danmuku.style.opacity = 0;
|
||||
this.option.visible = false;
|
||||
|
||||
Reference in new issue
Block a user