added option to exit fullscreen on lightbox close...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
02c468818e
commit
3a38523432
@ -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){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user