add option for disabling all forms of auto-sliding
This commit is contained in:
parent
8725593805
commit
bfd431a0c4
16
js/reveal.js
16
js/reveal.js
|
@ -117,14 +117,16 @@
|
||||||
showNotes: false,
|
showNotes: false,
|
||||||
|
|
||||||
// Global override for autolaying embedded media (video/audio/iframe)
|
// Global override for autolaying embedded media (video/audio/iframe)
|
||||||
// - null: Media will only autoplay if data-autoplay is present
|
// - null: Media will only autoplay if data-autoplay is present
|
||||||
// - true: All media will autoplay, regardless of individual setting
|
// - true: All media will autoplay, regardless of individual setting
|
||||||
// - false: No media will autoplay, regardless of individual setting
|
// - false: No media will autoplay, regardless of individual setting
|
||||||
autoPlayMedia: null,
|
autoPlayMedia: null,
|
||||||
|
|
||||||
// Number of milliseconds between automatically proceeding to the
|
// Controls automatic progression to the next slide
|
||||||
// next slide, disabled when set to 0, this value can be overwritten
|
// - 0: Auto-sliding only happens if the data-autoslide HTML attribute
|
||||||
// by using a data-autoslide attribute on your slides
|
// is present on the current slide or fragment
|
||||||
|
// - 1+: All slides will progress automatically at the given interval
|
||||||
|
// - false: No auto-sliding, even if data-autoslide is present
|
||||||
autoSlide: 0,
|
autoSlide: 0,
|
||||||
|
|
||||||
// Stop auto-sliding after user input
|
// Stop auto-sliding after user input
|
||||||
|
@ -4123,7 +4125,7 @@
|
||||||
|
|
||||||
cancelAutoSlide();
|
cancelAutoSlide();
|
||||||
|
|
||||||
if( currentSlide ) {
|
if( currentSlide && config.autoSlide !== false ) {
|
||||||
|
|
||||||
var fragment = currentSlide.querySelector( '.current-fragment' );
|
var fragment = currentSlide.querySelector( '.current-fragment' );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue