From bef2722eedd9671a9e0f0f9e553c0863437d1402 Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Thu, 19 Nov 2015 10:38:52 +0100 Subject: [PATCH] simplify condition #1434 --- js/reveal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/reveal.js b/js/reveal.js index 266df2c..164996d 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -2798,7 +2798,7 @@ horizontalOffsetMultiplier = config.parallaxBackgroundHorizontal; } else { - horizontalOffsetMultiplier = ( horizontalSlideCount-1 > 0) ? ( backgroundWidth - slideWidth ) / ( horizontalSlideCount-1 ) : 0; + horizontalOffsetMultiplier = horizontalSlideCount > 1 ? ( backgroundWidth - slideWidth ) / ( horizontalSlideCount-1 ) : 0; } horizontalOffset = horizontalOffsetMultiplier * indexh * -1;