Skip to content

Commit

Permalink
add missing condition for recalculating scale
Browse files Browse the repository at this point in the history
  • Loading branch information
hakimel committed Nov 6, 2014
1 parent 96b1ee9 commit 54e44ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/reveal.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );

Expand Down

0 comments on commit 54e44ef

Please sign in to comment.