aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/reveal.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/js/reveal.js b/js/reveal.js
index 08ece7f..8d150d8 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -2104,6 +2104,7 @@
dom.slides.style.height = size.height + 'px';
// Determine scale of content to fit within available space
+ var oldscale =scale;
scale = Math.min( size.presentationWidth / size.width, size.presentationHeight / size.height );
// Respect max/min scale settings
@@ -2169,6 +2170,13 @@
}
+ if( oldscale!==scale ){
+ dispatchEvent( 'resize', {
+ 'oldscale': oldscale,
+ 'scale': scale,
+ 'size': size
+ } );
+ }
}
updateProgress();