mirari / vue-fullscreen

A simple Vue.js component for fullscreen
MIT License
439 stars 50 forks source link

Fullscreen mode closes after file uploading #26

Open LavrovE opened 4 years ago

LavrovE commented 4 years ago

If i want to upload some files (inside fullscreen) - fullscreen instantly closes. Can i prevent it?

mirari commented 4 years ago

https://codepen.io/mirari/pen/YzqxyKj I tried this and the fullscreen mode dosen't close.

May be it's because you clicking on a blank part of the page?

LavrovE commented 4 years ago

https://codepen.io/mirari/pen/YzqxyKj I tried this and the fullscreen mode dosen't close.

May be it's because you clicking on a blank part of the page? I click on button Try on Chome: 1) open fullscreen mode 2) click on upload button result - fullscreen closes. One more moment: How can i open video in fullscreen , if we are in fullscreen mode already?

heizhimacoder commented 3 years ago

are you resolved ? input all have the same problem

mirari commented 3 years ago

Sorry for not replying for so long. This may not be the same issue. Exiting fullscreen when selecting a file is probably unavoidable for newer versions of browsers, one idea is to call the fullscreen again in the callback after selecting the file.

https://stackoverflow.com/questions/61100567/how-to-stay-full-screen-when-trigger-upload-file

How can i open video in fullscreen , if we are in fullscreen mode already?

One way is to use the fullscreen api to specify a new target. One way is to set the video element with absolute positioning to fill the current fullscreen target.