diff options
author | Hakim El Hattab | 2015-11-19 15:30:35 +0100 |
---|---|---|
committer | Hakim El Hattab | 2015-11-19 15:30:35 +0100 |
commit | bbe38ad2639ae483c16312f0b1594cfdea6d2a06 (patch) | |
tree | f23dfc11bf8ba14ac84d1100def708a5aaab8526 /js/reveal.js | |
parent | 833622edcd45a7721f7a76d93cc12a1284f60a0d (diff) | |
parent | a398a02edb19ad73d0bebcd5c3bd5334bc05ff3d (diff) |
Merge pull request #1437 from der-michik/autoslide-direction
Add an option to auto-slide right only
Diffstat (limited to 'js/reveal.js')
-rw-r--r-- | js/reveal.js | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/js/reveal.js b/js/reveal.js index d2b2970..46a6295 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -3688,7 +3688,10 @@ // - The overview isn't active // - The presentation isn't over if( autoSlide && !autoSlidePaused && !isPaused() && !isOverview() && ( !Reveal.isLastSlide() || availableFragments().next || config.loop === true ) ) { - autoSlideTimeout = setTimeout( navigateNext, autoSlide ); + autoSlideTimeout = setTimeout( function() { + typeof config.autoSlideMethod === 'function' ? config.autoSlideMethod() : navigateNext(); + cueAutoSlide(); + }, autoSlide ); autoSlideStartTime = Date.now(); } @@ -3834,10 +3837,6 @@ } } - // If auto-sliding is enabled we need to cue up - // another timeout - cueAutoSlide(); - } /** |