瀏覽代碼

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

Zach DeCook 5 年之前
父節點
當前提交
c62f4c7cfb
共有 1 個文件被更改,包括 5 次插入0 次删除
  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;