Skip to content
Snippets Groups Projects
Commit ffd3ea41 authored by Hakim El Hattab's avatar Hakim El Hattab
Browse files

display more slides in overview

parent 81f76208
Branches
No related tags found
No related merge requests found
......@@ -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++ ) {
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment