fscreen icon indicating copy to clipboard operation
fscreen copied to clipboard

Enabling fullscreen triggers a "visibilitychange" event on safari

Open francoiscrouzet opened this issue 3 years ago • 1 comments

Hello, and thanks for the library

On safari (15.3) on macos (11.6.4), and possibly on ios too, Enabling and disabling fullscreen triggers a "visibilitychange" event. It doesn't on Chrome and Firefox.

I guess it's just a different behavior between vendors, even out of fscreen (I didn't test 😅). In all case, should fscreen be (and could it be) consistent between vendors?

Thanks

francoiscrouzet avatar Feb 23 '22 14:02 francoiscrouzet

I finally tested without fscreen, and confirm that the behavior is also present when native. So I asked on SO: https://stackoverflow.com/questions/71240721/switching-fullscreen-triggers-a-visibilitychange-event-on-safari

francoiscrouzet avatar Feb 23 '22 16:02 francoiscrouzet