Parcourir la source

* Linear Navigation: Fix showing arrows when last slide has vertical children

Zach DeCook il y a 5 ans
Parent
commit
c62f4c7cfb
1 fichiers modifiés avec 5 ajouts et 0 suppressions
  1. 5 0
      js/reveal.js

+ 5 - 0
js/reveal.js

@@ -3951,6 +3951,11 @@
 			}
 		}
 
+		if( config.navigationMode === "linear" ) {
+			routes.right = routes.right || routes.down;
+			routes.left = routes.left || routes.up;
+		}
+
 		// Reverse horizontal controls for rtl
 		if( config.rtl ) {
 			var left = routes.left;