1
0
mirror of https://github.com/hakimel/reveal.js.git synced 2025-08-29 09:19:57 +02:00

simplify condition #1434

This commit is contained in:
Hakim El Hattab
2015-11-19 10:38:52 +01:00
parent 31550d09e4
commit bef2722eed

View File

@@ -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;