fix: restore opacity when replaying same video after image scene
This commit is contained in:
@@ -83,6 +83,7 @@ export class VideoManager {
|
|||||||
if (!this.elA || this.switching) return
|
if (!this.elA || this.switching) return
|
||||||
|
|
||||||
if (src === this.currentSrc) {
|
if (src === this.currentSrc) {
|
||||||
|
this.active.style.opacity = '1'
|
||||||
this.active.currentTime = 0
|
this.active.currentTime = 0
|
||||||
this.active.play().catch(() => {})
|
this.active.play().catch(() => {})
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user