Chanage toggleFullscreenOnSlideShow default behavior, and disable close on slide click

This commit is contained in:
Hadi Nategh 2015-02-06 11:14:24 +00:00
parent 78a5f0fe05
commit 0836c6a520
3 changed files with 9 additions and 4 deletions

View File

@ -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,

View File

@ -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