File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change 1062
1062
}
1063
1063
1064
1064
if ( _ . options . centerMode === true && _ . slideCount <= _ . options . slidesToShow ) {
1065
- if ( _ . options . rtl === true ) {
1066
- _ . slideOffset = ( ( _ . slideWidth * - Math . floor ( _ . options . slidesToShow ) ) / 2 ) + ( ( _ . slideWidth * _ . slideCount ) / 2 ) ;
1067
- } else {
1068
- _ . slideOffset = ( ( _ . slideWidth * Math . floor ( _ . options . slidesToShow ) ) / 2 ) - ( ( _ . slideWidth * _ . slideCount ) / 2 ) ;
1069
- }
1065
+ _ . slideOffset = ( ( _ . slideWidth * Math . floor ( _ . options . slidesToShow ) ) / 2 ) - ( ( _ . slideWidth * _ . slideCount ) / 2 ) ;
1070
1066
} else if ( _ . options . centerMode === true && _ . options . infinite === true ) {
1071
- _ . slideOffset += _ . slideWidth * Math . floor ( _ . options . slidesToShow / 2 ) - _ . slideWidth ;
1067
+ _ . slideOffset += _ . slideWidth * Math . floor ( _ . options . slidesToShow / 2 ) - _ . slideWidth ;
1072
1068
} else if ( _ . options . centerMode === true ) {
1073
- _ . slideOffset = 0 ;
1074
- _ . slideOffset += _ . slideWidth * Math . floor ( _ . options . slidesToShow / 2 ) ;
1069
+ _ . slideOffset = 0 ;
1070
+ _ . slideOffset += _ . slideWidth * Math . floor ( _ . options . slidesToShow / 2 ) ;
1075
1071
}
1076
1072
1077
1073
if ( _ . options . vertical === false ) {
You can’t perform that action at this time.
0 commit comments