There was an error while loading. Please reload this page.
1 parent 31550d0 commit bef2722Copy full SHA for bef2722
1 file changed
js/reveal.js
@@ -2798,7 +2798,7 @@
2798
horizontalOffsetMultiplier = config.parallaxBackgroundHorizontal;
2799
}
2800
else {
2801
- horizontalOffsetMultiplier = ( horizontalSlideCount-1 > 0) ? ( backgroundWidth - slideWidth ) / ( horizontalSlideCount-1 ) : 0;
+ horizontalOffsetMultiplier = horizontalSlideCount > 1 ? ( backgroundWidth - slideWidth ) / ( horizontalSlideCount-1 ) : 0;
2802
2803
2804
horizontalOffset = horizontalOffsetMultiplier * indexh * -1;
0 commit comments