1
0
Fork 0

Merge pull request #2513 from TuurDutoit/feature/mobile-view-distance

Add mobileViewDistance config key
This commit is contained in:
Hakim El Hattab 2019-12-09 21:00:58 +01:00 committed by GitHub
commit 1515ddcf87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -270,6 +270,10 @@
// Number of slides away from the current that are visible // Number of slides away from the current that are visible
viewDistance: 3, viewDistance: 3,
// Number of slides away from the current that are visible on mobile devices
// It is advisable to set this to a lower number than viewDistance in order to save resources
mobileViewDistance: 2,
// The display mode that will be used to show slides // The display mode that will be used to show slides
display: 'block', display: 'block',
@ -3286,7 +3290,7 @@
// Limit view distance on weaker devices // Limit view distance on weaker devices
if( isMobileDevice ) { if( isMobileDevice ) {
viewDistance = isOverview() ? 6 : 2; viewDistance = isOverview() ? 6 : config.mobileViewDistance;
} }
// All slides need to be visible when exporting to PDF // All slides need to be visible when exporting to PDF