diff options
Diffstat (limited to 'js')
-rw-r--r-- | js/reveal.js | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/js/reveal.js b/js/reveal.js index 52cc615..4b1fbc8 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -3317,7 +3317,7 @@ // - The presentation isn't paused // - The overview isn't active // - The presentation isn't over - if( autoSlide && !autoSlidePaused && !isPaused() && !isOverview() && ( !Reveal.isLastSlide() || config.loop === true ) ) { + if( autoSlide && !autoSlidePaused && !isPaused() && !isOverview() && ( !Reveal.isLastSlide() || availableFragments().next || config.loop === true ) ) { autoSlideTimeout = setTimeout( navigateNext, autoSlide ); autoSlideStartTime = Date.now(); } @@ -3426,16 +3426,10 @@ navigateUp(); } else { - // Fetch the previous horizontal slide, if there is one - var previousSlide = dom.wrapper.querySelector( HORIZONTAL_SLIDES_SELECTOR + '.past:nth-child(' + indexh + ')' ); - - if( previousSlide ) { - var v = ( previousSlide.querySelectorAll( 'section' ).length - 1 ) || undefined; - var h = indexh - 1; - if( config.rtl ) { - h = indexh + 1; - } - slide( h, v ); + if( config.rtl ) { + navigateRight(); + } else { + navigateLeft(); } } } |