From ffd3ea410bf4f2efc85b816f054466ce9e7fa839 Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Sun, 11 Aug 2013 13:42:50 -0400 Subject: display more slides in overview --- js/reveal.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'js/reveal.js') diff --git a/js/reveal.js b/js/reveal.js index 11f5c43..3e91984 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -1593,15 +1593,11 @@ var Reveal = (function(){ // The number of steps away from the present slide that will // be visible - var viewDistance = config.viewDistance; + var viewDistance = isOverview() ? 20 : config.viewDistance; - // Heavily limited on weaker devices + // Limit view distance on weaker devices if( isMobileDevice ) { - viewDistance = 1; - } - - if( isOverview() ) { - viewDistance = 6; + viewDistance = isOverview() ? 6 : 1; } for( var x = 0; x < horizontalSlidesLength; x++ ) { -- cgit v1.2.3