forked from extern/egroupware
Chanage toggleFullscreenOnSlideShow default behavior, and disable close on slide click
This commit is contained in:
parent
78a5f0fe05
commit
0836c6a520
@ -271,7 +271,7 @@ function expose (widget)
|
||||
// Close the gallery on pressing the ESC key:
|
||||
closeOnEscape: true,
|
||||
// Close the gallery when clicking on an empty slide area:
|
||||
closeOnSlideClick: true,
|
||||
closeOnSlideClick: false,
|
||||
// Close the gallery by swiping up or down:
|
||||
closeOnSwipeUpOrDown: true,
|
||||
// Emulate touch events on mouse-pointer devices such as desktop browsers:
|
||||
@ -303,6 +303,8 @@ function expose (widget)
|
||||
transitionSpeed: 400,
|
||||
//Hide controls when the slideshow is playing
|
||||
hideControlsOnSlideshow: true,
|
||||
//Request fullscreen on slide show
|
||||
toggleFullscreenOnSlideShow:false,
|
||||
// The transition speed for automatic slide changes, set to an integer
|
||||
// greater 0 to override the default transition speed:
|
||||
slideshowTransitionSpeed: undefined,
|
||||
|
@ -116,11 +116,13 @@
|
||||
// Toggle the automatic slideshow interval on pressing the Space key:
|
||||
toggleSlideshowOnSpace: true,
|
||||
// Toggle fullscreen mode when slideshow is running
|
||||
toggleFullscreenOnSlideShow: true,
|
||||
toggleFullscreenOnSlideShow: false,
|
||||
// Navigate the gallery by pressing left and right on the keyboard:
|
||||
enableKeyboardNavigation: true,
|
||||
// Close the gallery on pressing the Esc key:
|
||||
closeOnEscape: true,
|
||||
//Hide controls when the slideshow is playing
|
||||
hideControlsOnSlideshow:false,
|
||||
// Close the gallery when clicking on an empty slide area:
|
||||
closeOnSlideClick: true,
|
||||
// Close the gallery by swiping up or down:
|
||||
@ -376,6 +378,7 @@
|
||||
|
||||
play: function (time) {
|
||||
var that = this;
|
||||
if (this.options.hideControlsOnSlideshow) this.container.removeClass(this.options.controlsClass);
|
||||
window.clearTimeout(this.timeout);
|
||||
this.interval = time || this.options.slideshowInterval;
|
||||
if (this.elements[this.index] > 1) {
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user