Skip to content

Commit 19e54eb

Browse files
committed
round reveal.js scale to two decimal points
1 parent 812830c commit 19e54eb

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

js/reveal.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -839,6 +839,7 @@ export default function( revealElement, options ) {
839839
// Respect max/min scale settings
840840
scale = Math.max( scale, config.minScale );
841841
scale = Math.min( scale, config.maxScale );
842+
scale = Math.round( scale * 100 ) / 100;
842843

843844
// Don't apply any scaling styles if scale is 1 or we're
844845
// in the scroll view

0 commit comments

Comments
 (0)