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