Fix opening media viewer back from PIP
This commit is contained in:
parent
ea9cada843
commit
886e42e79e
@ -1410,7 +1410,8 @@ export default class AppMediaViewerBase<
|
|||||||
this.wholeDiv.classList.toggle('hide-caption', !!open);
|
this.wholeDiv.classList.toggle('hide-caption', !!open);
|
||||||
},
|
},
|
||||||
onPip: (pip) => {
|
onPip: (pip) => {
|
||||||
if(!pip && (window as any).appMediaViewer !== this) {
|
const otherMediaViewer = (window as any).appMediaViewer;
|
||||||
|
if(!pip && otherMediaViewer && otherMediaViewer !== this) {
|
||||||
this.releaseSingleMedia = undefined;
|
this.releaseSingleMedia = undefined;
|
||||||
this.close();
|
this.close();
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user