Skip to content

Commit bef2722

Browse files
committed
simplify condition hakimel#1434
1 parent 31550d0 commit bef2722

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

js/reveal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2798,7 +2798,7 @@
27982798
horizontalOffsetMultiplier = config.parallaxBackgroundHorizontal;
27992799
}
28002800
else {
2801-
horizontalOffsetMultiplier = ( horizontalSlideCount-1 > 0) ? ( backgroundWidth - slideWidth ) / ( horizontalSlideCount-1 ) : 0;
2801+
horizontalOffsetMultiplier = horizontalSlideCount > 1 ? ( backgroundWidth - slideWidth ) / ( horizontalSlideCount-1 ) : 0;
28022802
}
28032803

28042804
horizontalOffset = horizontalOffsetMultiplier * indexh * -1;

0 commit comments

Comments
 (0)