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:
|
// Close the gallery on pressing the ESC key:
|
||||||
closeOnEscape: true,
|
closeOnEscape: true,
|
||||||
// Close the gallery when clicking on an empty slide area:
|
// Close the gallery when clicking on an empty slide area:
|
||||||
closeOnSlideClick: true,
|
closeOnSlideClick: false,
|
||||||
// Close the gallery by swiping up or down:
|
// Close the gallery by swiping up or down:
|
||||||
closeOnSwipeUpOrDown: true,
|
closeOnSwipeUpOrDown: true,
|
||||||
// Emulate touch events on mouse-pointer devices such as desktop browsers:
|
// Emulate touch events on mouse-pointer devices such as desktop browsers:
|
||||||
@ -303,6 +303,8 @@ function expose (widget)
|
|||||||
transitionSpeed: 400,
|
transitionSpeed: 400,
|
||||||
//Hide controls when the slideshow is playing
|
//Hide controls when the slideshow is playing
|
||||||
hideControlsOnSlideshow: true,
|
hideControlsOnSlideshow: true,
|
||||||
|
//Request fullscreen on slide show
|
||||||
|
toggleFullscreenOnSlideShow:false,
|
||||||
// The transition speed for automatic slide changes, set to an integer
|
// The transition speed for automatic slide changes, set to an integer
|
||||||
// greater 0 to override the default transition speed:
|
// greater 0 to override the default transition speed:
|
||||||
slideshowTransitionSpeed: undefined,
|
slideshowTransitionSpeed: undefined,
|
||||||
|
@ -116,11 +116,13 @@
|
|||||||
// Toggle the automatic slideshow interval on pressing the Space key:
|
// Toggle the automatic slideshow interval on pressing the Space key:
|
||||||
toggleSlideshowOnSpace: true,
|
toggleSlideshowOnSpace: true,
|
||||||
// Toggle fullscreen mode when slideshow is running
|
// Toggle fullscreen mode when slideshow is running
|
||||||
toggleFullscreenOnSlideShow: true,
|
toggleFullscreenOnSlideShow: false,
|
||||||
// Navigate the gallery by pressing left and right on the keyboard:
|
// Navigate the gallery by pressing left and right on the keyboard:
|
||||||
enableKeyboardNavigation: true,
|
enableKeyboardNavigation: true,
|
||||||
// Close the gallery on pressing the Esc key:
|
// Close the gallery on pressing the Esc key:
|
||||||
closeOnEscape: true,
|
closeOnEscape: true,
|
||||||
|
//Hide controls when the slideshow is playing
|
||||||
|
hideControlsOnSlideshow:false,
|
||||||
// Close the gallery when clicking on an empty slide area:
|
// Close the gallery when clicking on an empty slide area:
|
||||||
closeOnSlideClick: true,
|
closeOnSlideClick: true,
|
||||||
// Close the gallery by swiping up or down:
|
// Close the gallery by swiping up or down:
|
||||||
@ -376,6 +378,7 @@
|
|||||||
|
|
||||||
play: function (time) {
|
play: function (time) {
|
||||||
var that = this;
|
var that = this;
|
||||||
|
if (this.options.hideControlsOnSlideshow) this.container.removeClass(this.options.controlsClass);
|
||||||
window.clearTimeout(this.timeout);
|
window.clearTimeout(this.timeout);
|
||||||
this.interval = time || this.options.slideshowInterval;
|
this.interval = time || this.options.slideshowInterval;
|
||||||
if (this.elements[this.index] > 1) {
|
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