diff options
author | Hakim El Hattab <hakim.elhattab@gmail.com> | 2015-11-19 10:38:52 +0100 |
---|---|---|
committer | Hakim El Hattab <hakim.elhattab@gmail.com> | 2015-11-19 10:38:52 +0100 |
commit | bef2722eedd9671a9e0f0f9e553c0863437d1402 (patch) | |
tree | 8d01390d52ef601ce7746ca9fc91c845499cd588 /js | |
parent | 31550d09e428092dd6fa91702d584d8e7b74bbeb (diff) | |
download | fosdem-2018-presentation-bef2722eedd9671a9e0f0f9e553c0863437d1402.tar fosdem-2018-presentation-bef2722eedd9671a9e0f0f9e553c0863437d1402.tar.gz |
simplify condition #1434
Diffstat (limited to 'js')
-rw-r--r-- | js/reveal.js | 2 |
1 files changed, 1 insertions, 1 deletions
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; |