style: ...

This commit is contained in:
539943419 committed 2024-09-29 17:57:20 +08:00
1 parent 7b52a7a62e
commit cba20150be
2 files changed
+8 -1

No files matched your search

@@ -11,6 +11,7 @@
opacity: 1;
visibility: visible;
transition: opacity 0.5s ease, visibility 0.5s ease, width 0.25s ease, left 0.25s ease;
pointer-events: all !important;
svg {
width: inherit;
height: inherit;
@@ -43,4 +44,8 @@
.xgplayer.xgplayer-inactive .overlay-div {
pointer-events: none;
cursor: none;
}
.xgplayer .xgplayer-locked {
pointer-events: none;
}
@@ -58,6 +58,8 @@ export default class LockPlugin extends BasePlugin {
}
private toggleLock() {
console.log(this.player.seek)
this.player.seek = () => {}
if (this.lockDiv && this.overlayDiv) {
this.locked = !this.locked
this.lockDiv.innerHTML = this.locked
@@ -69,7 +71,7 @@ export default class LockPlugin extends BasePlugin {
? this.player.controls.hide()
: this.player.controls.show())
this.player.root !== null &&
this.player.root.classList.toggle('locked', this.locked)
this.player.root.classList.toggle('xgplayer-locked', this.locked)
}
}