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,
|
click_to_select: true,
|
||||||
|
|
||||||
|
exit_fullscreen_on_lightbox_close: true,
|
||||||
|
|
||||||
// Mode to select the above/below image...
|
// Mode to select the above/below image...
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
@ -643,6 +645,8 @@ var Lightbox = {
|
|||||||
this.dom.querySelector('.close')
|
this.dom.querySelector('.close')
|
||||||
.addEventListener('click', function(evt){
|
.addEventListener('click', function(evt){
|
||||||
evt.stopPropagation()
|
evt.stopPropagation()
|
||||||
|
that.gallery.exit_fullscreen_on_lightbox_close
|
||||||
|
&& document.exitFullscreen()
|
||||||
that.hide() })
|
that.hide() })
|
||||||
this.dom.querySelector('.fullscreen')
|
this.dom.querySelector('.fullscreen')
|
||||||
.addEventListener('click', function(evt){
|
.addEventListener('click', function(evt){
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user