Skip to content

Commit

Permalink
simplify condition hakimel#1434
Browse files Browse the repository at this point in the history
  • Loading branch information
hakimel committed Nov 19, 2015
1 parent 31550d0 commit bef2722
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/reveal.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit bef2722

Please sign in to comment.