Browse Source

Fix opening media viewer back from PIP

master
Eduard Kuzmenko 2 years ago
parent
commit
886e42e79e
  1. 3
      src/components/appMediaViewerBase.ts

3
src/components/appMediaViewerBase.ts

@ -1410,7 +1410,8 @@ export default class AppMediaViewerBase< @@ -1410,7 +1410,8 @@ export default class AppMediaViewerBase<
this.wholeDiv.classList.toggle('hide-caption', !!open);
},
onPip: (pip) => {
if(!pip && (window as any).appMediaViewer !== this) {
const otherMediaViewer = (window as any).appMediaViewer;
if(!pip && otherMediaViewer && otherMediaViewer !== this) {
this.releaseSingleMedia = undefined;
this.close();
return;

Loading…
Cancel
Save