Merge branch 'master' of https://github.com/ccortezia/reveal.js into dev
commit
ecce48d1c0
|
@ -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';
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue