aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2014-11-06 19:19:14 +0100
committerHakim El Hattab <hakim.elhattab@gmail.com>2014-11-06 19:19:14 +0100
commit54e44ef4e20029da95bd34e26fd640f4b7ed5809 (patch)
tree02b8661ff5b81c495b329502866c22be779e0063 /js
parent96b1ee9c39cc3dbffb704b34215775c91ce402c8 (diff)
downloadfosdem-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.js2
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 );