|
@@ -2359,7 +2359,7 @@
|
|
viewDistance = isOverview() ? 6 : 2;
|
|
viewDistance = isOverview() ? 6 : 2;
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
+
|
|
if( isPrintingPDF() ) {
|
|
if( isPrintingPDF() ) {
|
|
viewDistance = Number.MAX_VALUE;
|
|
viewDistance = Number.MAX_VALUE;
|
|
}
|
|
}
|
|
@@ -2370,8 +2370,14 @@
|
|
var verticalSlides = toArray( horizontalSlide.querySelectorAll( 'section' ) ),
|
|
var verticalSlides = toArray( horizontalSlide.querySelectorAll( 'section' ) ),
|
|
verticalSlidesLength = verticalSlides.length;
|
|
verticalSlidesLength = verticalSlides.length;
|
|
|
|
|
|
-
|
|
+
|
|
- distanceX = Math.abs( ( ( indexh || 0 ) - x ) % ( horizontalSlidesLength - viewDistance ) ) || 0;
|
|
+ distanceX = Math.abs( ( indexh || 0 ) - x ) || 0;
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ if( config.loop ) {
|
|
|
|
+ distanceX = distanceX % ( horizontalSlidesLength - viewDistance );
|
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
if( distanceX < viewDistance ) {
|
|
if( distanceX < viewDistance ) {
|