This change checks only calls fullscreenAPI.cancel if fotorama was initialized with the allowfullscreen "native" option.
This solves the following issue:
REPRO STEPS
Add fotorama to web page using allowfullscreen: true option (do not use "native" option)
Open the web page containing a fotorama viewer in any modern browser
Enter browser fullscreen mode (not fotorama)
Interact with fotorama gallery to put fotorama into fullscreen view
Exit fotorama fullscreen view
ACTUAL
Fotorama fullscreen mode is exited, but the web page is kicked out of native fullscreen mode as well. The browser is no longer in fullscreen mode.
EXPECTED
Fotorama should exit fullscreen but not kick the containing web page out of native fullscreen mode.
This change checks only calls fullscreenAPI.cancel if fotorama was initialized with the allowfullscreen "native" option.
This solves the following issue:
REPRO STEPS
ACTUAL Fotorama fullscreen mode is exited, but the web page is kicked out of native fullscreen mode as well. The browser is no longer in fullscreen mode.
EXPECTED Fotorama should exit fullscreen but not kick the containing web page out of native fullscreen mode.