style: ...
This commit is contained in:
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;
|
||||
@@ -44,3 +45,7 @@
|
||||
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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user