diff options
author | Hakim El Hattab <hakim.elhattab@gmail.com> | 2019-01-31 20:09:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-31 20:09:45 +0100 |
commit | 9c1615fff1b9a31e4ea5bd0e33b585ee9a888b39 (patch) | |
tree | 26e7e7507a34f307f838ca9baf5f2deb29064b51 /js | |
parent | aa8be6829cae09ffe0332120fc0007383d49d65c (diff) | |
parent | 126365627b30e66b4dc3e1407d1b457094f6cbc2 (diff) | |
download | perl-software-in-gnu-guix-9c1615fff1b9a31e4ea5bd0e33b585ee9a888b39.tar perl-software-in-gnu-guix-9c1615fff1b9a31e4ea5bd0e33b585ee9a888b39.tar.gz |
Merge pull request #2300 from mw75/master
Resize Event
Diffstat (limited to 'js')
-rw-r--r-- | js/reveal.js | 8 |
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(); |