This commit is contained in:
Hakim El Hattab 2014-02-18 08:10:07 +01:00
commit ecce48d1c0

View file

@ -2076,7 +2076,7 @@ var Reveal = (function(){
var slideHeight = dom.background.offsetHeight; var slideHeight = dom.background.offsetHeight;
var verticalSlideCount = verticalSlides.length; 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'; dom.background.style.backgroundPosition = horizontalOffset + 'px ' + verticalOffset + 'px';