Add mobileViewDistance config key
This commit is contained in:
parent
33bed47dac
commit
6ab72eae51
|
@ -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',
|
||||||
|
|
||||||
|
@ -3257,7 +3261,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
|
||||||
|
|
Loading…
Reference in New Issue