diff options
author | Hakim El Hattab | 2014-02-18 08:10:07 +0100 |
---|---|---|
committer | Hakim El Hattab | 2014-02-18 08:10:07 +0100 |
commit | ecce48d1c089df8b7ac601e7990b3b3c965e97dd (patch) | |
tree | 219ac1064247bc016d880b5499d3ac7a614aed5a /js/reveal.js | |
parent | 015468c3a2d1d4092f33920ac555a0e288e6213f (diff) | |
parent | d9513b34d58da2e744719f6cc78c1bf99c2aa601 (diff) |
Merge branch 'master' of https://github.com/ccortezia/reveal.js into dev
Diffstat (limited to 'js/reveal.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 fd36f8a..a06ce55 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -2076,7 +2076,7 @@ var Reveal = (function(){ var slideHeight = dom.background.offsetHeight; var verticalSlideCount = verticalSlides.length; - var verticalOffset = verticalSlideCount > 0 ? -( backgroundHeight - slideHeight ) / ( verticalSlideCount-1 ) * indexv : 0; + var verticalOffset = verticalSlideCount > 1 ? -( backgroundHeight - slideHeight ) / ( verticalSlideCount-1 ) * indexv : 0; dom.background.style.backgroundPosition = horizontalOffset + 'px ' + verticalOffset + 'px'; |