fix looped view distance calculation

edit
Hakim El Hattab 2015-02-09 09:35:05 +01:00
parent a4852c7cb2
commit 2ed1d6fb5d
1 changed files with 1 additions and 1 deletions

View File

@ -2399,7 +2399,7 @@
// If the presentation is looped, distance should measure // If the presentation is looped, distance should measure
// 1 between the first and last slides // 1 between the first and last slides
if( config.loop ) { if( config.loop ) {
distanceX = distanceX % ( horizontalSlidesLength - viewDistance ); distanceX = Math.abs( ( ( indexh || 0 ) - x ) % ( horizontalSlidesLength - viewDistance ) ) || 0;
} }
// Show the horizontal slide if it's within the view distance // Show the horizontal slide if it's within the view distance