Browse Source

Merge pull request #2631 from christian-classics-ethereal-library/squarePresentationLinear

Navigation Arrows: Fix visibility bug in linear navigation mode
Hakim El Hattab 5 years ago
parent
commit
5d179ed4c2
1 changed files with 5 additions and 0 deletions
  1. 5 0
      js/reveal.js

+ 5 - 0
js/reveal.js

@@ -2735,6 +2735,11 @@ export default function( revealElement, options ) {
 			}
 		}
 
+		if ( horizontalSlides.length > 1 && config.navigationMode === 'linear' ) {
+			routes.right = routes.right || routes.down;
+			routes.left = routes.left || routes.up;
+		}
+
 		// Reverse horizontal controls for rtl
 		if( config.rtl ) {
 			let left = routes.left;