simplify condition #1434
This commit is contained in:
parent
31550d09e4
commit
bef2722eed
|
@ -2798,7 +2798,7 @@
|
||||||
horizontalOffsetMultiplier = config.parallaxBackgroundHorizontal;
|
horizontalOffsetMultiplier = config.parallaxBackgroundHorizontal;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
horizontalOffsetMultiplier = ( horizontalSlideCount-1 > 0) ? ( backgroundWidth - slideWidth ) / ( horizontalSlideCount-1 ) : 0;
|
horizontalOffsetMultiplier = horizontalSlideCount > 1 ? ( backgroundWidth - slideWidth ) / ( horizontalSlideCount-1 ) : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
horizontalOffset = horizontalOffsetMultiplier * indexh * -1;
|
horizontalOffset = horizontalOffsetMultiplier * indexh * -1;
|
||||||
|
|
Loading…
Reference in New Issue