Merge branch 'master' of https://github.com/ccortezia/reveal.js into dev
This commit is contained in:
commit
ecce48d1c0
1 changed files with 1 additions and 1 deletions
|
@ -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';
|
||||
|
||||
|
|
Loading…
Reference in a new issue