sindresorhus / screenfull

Simple wrapper for cross-browser usage of the JavaScript Fullscreen API
https://sindresorhus.com/screenfull
MIT License
7.08k stars 698 forks source link

FullScreen mode goes to black after rotating the mobile device #205

Open dracarys55 opened 2 years ago

dracarys55 commented 2 years ago

@sindresorhus It seems like whenever I rotating the chrome for Android during FullScreen mode, and exit fullScreen mode and back to fullScreen mode again.It will goes to complete black....and it only happens on chrome, Firefox is okay So can anyone tell me how to fix this issue? I have been search the solution almost three days, beginning to this is the just bug of google chrome.

Here is the code I wrote :

image

sindresorhus commented 2 years ago

If it goes black, it's a bug in Chrome or your code. This package is a simple wrapper.

dracarys55 commented 2 years ago

If it goes black, it's a bug in Chrome or your code. This package is a simple wrapper.

Thanks for the quick reply ! Yes, I know this package is simply a wrapper, so I tried vanilla JavaScript to see if i still goes to black after I rotate and the answer is Yes... and the same code I wrote works all fine in Firefox, so maybe it's actually a bug in Chrome ?