added option to exit fullscreen on lightbox close...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2023-07-27 17:00:34 +03:00
parent 02c468818e
commit 3a38523432

View File

@ -166,6 +166,8 @@ var Gallery = {
click_to_select: true,
exit_fullscreen_on_lightbox_close: true,
// Mode to select the above/below image...
//
//
@ -643,6 +645,8 @@ var Lightbox = {
this.dom.querySelector('.close')
.addEventListener('click', function(evt){
evt.stopPropagation()
that.gallery.exit_fullscreen_on_lightbox_close
&& document.exitFullscreen()
that.hide() })
this.dom.querySelector('.fullscreen')
.addEventListener('click', function(evt){