diff options
author | Hakim El Hattab <hakim.elhattab@gmail.com> | 2014-11-06 19:19:14 +0100 |
---|---|---|
committer | Hakim El Hattab <hakim.elhattab@gmail.com> | 2014-11-06 19:19:14 +0100 |
commit | 54e44ef4e20029da95bd34e26fd640f4b7ed5809 (patch) | |
tree | 02b8661ff5b81c495b329502866c22be779e0063 /js | |
parent | 96b1ee9c39cc3dbffb704b34215775c91ce402c8 (diff) | |
download | fosdem-2018-presentation-54e44ef4e20029da95bd34e26fd640f4b7ed5809.tar fosdem-2018-presentation-54e44ef4e20029da95bd34e26fd640f4b7ed5809.tar.gz |
add missing condition for recalculating scale
Diffstat (limited to '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 312d5d1..a6bd81a 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -1471,7 +1471,7 @@ // No point in calculating scale if the only possible // result is 1 - if( config.minScale !== 1 || config.maxScale !== 1 ) { + if( scale !== -1 || config.minScale !== 1 || config.maxScale !== 1 ) { // Determine scale of content to fit within available space scale = Math.min( size.presentationWidth / size.width, size.presentationHeight / size.height ); |