Przeglądaj źródła

continue auto-sliding through fragments on last slide #974

Hakim El Hattab 10 lat temu
rodzic
commit
136d279361
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      js/reveal.js

+ 1 - 1
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();
 			}