|
@@ -2097,6 +2097,8 @@
|
|
|
|
|
|
var size = getComputedSlideSize();
|
|
var size = getComputedSlideSize();
|
|
|
|
|
|
|
|
+ var oldScale = scale;
|
|
|
|
+
|
|
// Layout the contents of the slides
|
|
// Layout the contents of the slides
|
|
layoutSlideContents( config.width, config.height );
|
|
layoutSlideContents( config.width, config.height );
|
|
|
|
|
|
@@ -2104,7 +2106,6 @@
|
|
dom.slides.style.height = size.height + 'px';
|
|
dom.slides.style.height = size.height + 'px';
|
|
|
|
|
|
// Determine scale of content to fit within available space
|
|
// Determine scale of content to fit within available space
|
|
- var oldscale =scale;
|
|
|
|
scale = Math.min( size.presentationWidth / size.width, size.presentationHeight / size.height );
|
|
scale = Math.min( size.presentationWidth / size.width, size.presentationHeight / size.height );
|
|
|
|
|
|
// Respect max/min scale settings
|
|
// Respect max/min scale settings
|
|
@@ -2170,9 +2171,9 @@
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
- if( oldscale!==scale ){
|
|
|
|
|
|
+ if( oldScale !== scale ) {
|
|
dispatchEvent( 'resize', {
|
|
dispatchEvent( 'resize', {
|
|
- 'oldscale': oldscale,
|
|
|
|
|
|
+ 'oldScale': oldScale,
|
|
'scale': scale,
|
|
'scale': scale,
|
|
'size': size
|
|
'size': size
|
|
} );
|
|
} );
|